5 implementations of IHostLifetime
Microsoft.Extensions.Hosting (3)
Internal\ConsoleLifetime.cs (1)
21public partial class ConsoleLifetime : IHostLifetime, IDisposable
Internal\ConsoleLifetime.netcoreapp.cs (1)
11public partial class ConsoleLifetime : IHostLifetime
Internal\NullLifetime.cs (1)
12internal sealed class NullLifetime : IHostLifetime
Microsoft.Extensions.Hosting.Systemd (1)
SystemdLifetime.cs (1)
20public partial class SystemdLifetime : IHostLifetime, IDisposable
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetime.cs (1)
18public class WindowsServiceLifetime : ServiceBase, IHostLifetime
9 references to IHostLifetime
Microsoft.Extensions.Hosting (7)
HostBuilder.cs (1)
325appServices.GetRequiredService<IHostLifetime>(),
HostBuilder.netcoreapp.cs (2)
16services.AddSingleton<IHostLifetime, ConsoleLifetime>(); 20services.AddSingleton<IHostLifetime, NullLifetime>();
HostingHostBuilderExtensions.cs (2)
356return hostBuilder.ConfigureServices(collection => collection.AddSingleton<IHostLifetime, ConsoleLifetime>()); 374collection.AddSingleton<IHostLifetime, ConsoleLifetime>();
Internal\Host.cs (2)
24private readonly IHostLifetime _hostLifetime; 41IHostLifetime hostLifetime,
Microsoft.Extensions.Hosting.Systemd (1)
SystemdHostBuilderExtensions.cs (1)
129services.AddSingleton<IHostLifetime, SystemdLifetime>();
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetimeHostBuilderExtensions.cs (1)
120services.AddSingleton<IHostLifetime, WindowsServiceLifetime>();