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
17 references to IApplicationLifetime
InProcessWebSite (5)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (3)
599var lifetime = ctx.RequestServices.GetService<Microsoft.AspNetCore.Hosting.IApplicationLifetime>(); 995ctx.RequestServices.GetService<Microsoft.AspNetCore.Hosting.IApplicationLifetime>().StopApplication();
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.WebSockets.cs (2)
62var appLifetime = app.ApplicationServices.GetRequiredService<Microsoft.AspNetCore.Hosting.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)
69_applicationServiceCollection.AddSingleton<AspNetCore.Hosting.IApplicationLifetime>(services
Microsoft.AspNetCore.Hosting.Tests (9)
WebHostTests.cs (9)
165var lifetime2 = host.Services.GetRequiredService<AspNetCore.Hosting.IApplicationLifetime>(); 411var applicationLifetime2 = host.Services.GetService<AspNetCore.Hosting.IApplicationLifetime>(); 432var applicationLifetime2 = host.Services.GetService<AspNetCore.Hosting.IApplicationLifetime>(); 682var applicationLifetime2 = host.Services.GetService<AspNetCore.Hosting.IApplicationLifetime>(); 1151AspNetCore.Hosting.IApplicationLifetime lifetime1,