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