< Summary

Information
Class: TeleFlow.Framework.Hosting.TeleFlowHostedServiceCollectionState
Assembly: TeleFlow.Framework.Hosting
File(s): /_/src/TeleFlow.Framework.Hosting/TeleFlowHostedServiceCollectionState.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 17
Line coverage: 100%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)50%22100%

File(s)

/_/src/TeleFlow.Framework.Hosting/TeleFlowHostedServiceCollectionState.cs

#LineLine coverage
 1using Microsoft.Extensions.DependencyInjection;
 2
 3namespace TeleFlow.Framework.Hosting;
 4
 5/// <summary>
 6/// Keeps the host service collection available until the hosted service starts, so Core can apply the same
 7/// configuration validation that the manual TeleFlow application builder applies before creating the runtime pipeline.
 8/// </summary>
 9internal sealed class TeleFlowHostedServiceCollectionState
 10{
 11    public TeleFlowHostedServiceCollectionState(IServiceCollection services)
 12    {
 713        Services = services ?? throw new ArgumentNullException(nameof(services));
 714    }
 15
 16    public IServiceCollection Services { get; }
 17}