< Summary

Information
Class: Common.Hosting.HandleTerminationCommand
Assembly: Common
File(s): /__w/production-ready-pipelines/production-ready-pipelines/Common/Hosting/HandleTerminationCommand.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 18
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
Execute()100%1100%

File(s)

/__w/production-ready-pipelines/production-ready-pipelines/Common/Hosting/HandleTerminationCommand.cs

#LineLine coverage
 1using Serilog;
 2
 3namespace Common.Hosting;
 4
 5public class HandleTerminationCommand
 6{
 7    public virtual void Execute()
 38    {
 9        try
 310        {
 311            Log.CloseAndFlush();
 212        }
 113        catch (Exception exception)
 114        {
 115            Console.WriteLine(exception);
 116        }
 317    }
 18}

Methods/Properties

Execute()