8 references to ApplicationLifetime
Microsoft.AspNetCore.Hosting (8)
Internal\ApplicationLifetime.cs (2)
23private readonly ILogger<ApplicationLifetime> _logger; 25public ApplicationLifetime(ILogger<ApplicationLifetime> logger)
Internal\WebHost.cs (6)
28private ApplicationLifetime? _applicationLifetime; 64_applicationServiceCollection.AddSingleton<ApplicationLifetime>(); 67=> services.GetService<ApplicationLifetime>()!); 70=> services.GetService<ApplicationLifetime>()!); 72=> services.GetService<ApplicationLifetime>()!); 134_applicationLifetime = _applicationServices.GetRequiredService<ApplicationLifetime>();