Microsoft.Extensions.Hosting.Internal.NullLifetime sealed class NullLifetime : IHostLifetime Minimalistic lifetime that does nothing. Documentation Code public NullLifetime() public Task StopAsync(CancellationToken cancellationToken) public Task WaitForStartAsync(CancellationToken cancellationToken)