2 implementations of IApplicationLifetime
Microsoft.AspNetCore.Hosting (2)
GenericHost\GenericWebHostApplicationLifetime.cs (1)
8internal sealed class GenericWebHostApplicationLifetime : IApplicationLifetime
Internal\ApplicationLifetime.cs (1)
17internal sealed class ApplicationLifetime : IApplicationLifetime, Extensions.Hosting.IApplicationLifetime, IHostApplicationLifetime
12 references to IApplicationLifetime
Microsoft.AspNetCore.Hosting (3)
GenericHost\GenericWebHostBuilder.cs (1)
61services.AddSingleton<IApplicationLifetime, GenericWebHostApplicationLifetime>();
GenericHost\SlimWebHostBuilder.cs (1)
37services.AddSingleton<IApplicationLifetime, GenericWebHostApplicationLifetime>();
Internal\WebHost.cs (1)
70_applicationServiceCollection.AddSingleton<AspNetCore.Hosting.IApplicationLifetime>(services
Microsoft.AspNetCore.Hosting.Tests (9)
WebHostTests.cs (9)
167var lifetime2 = host.Services.GetRequiredService<AspNetCore.Hosting.IApplicationLifetime>(); 413var applicationLifetime2 = host.Services.GetService<AspNetCore.Hosting.IApplicationLifetime>(); 434var applicationLifetime2 = host.Services.GetService<AspNetCore.Hosting.IApplicationLifetime>(); 684var applicationLifetime2 = host.Services.GetService<AspNetCore.Hosting.IApplicationLifetime>(); 1155AspNetCore.Hosting.IApplicationLifetime lifetime1,