9 instantiations of ApplicationLifetime
Aspire.Hosting.RemoteHost.Tests (9)
CodeGeneration\ApiReferenceExportTests.cs (1)
251new Microsoft.Extensions.Hosting.Internal.ApplicationLifetime(
IntegrationHostLauncherTests.cs (7)
33new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), 55new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), 81new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), 101new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), NullLogger<IntegrationHostLauncher>.Instance); 138new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), NullLogger<IntegrationHostLauncher>.Instance); 158new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), NullLogger<IntegrationHostLauncher>.Instance); 188new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), NullLogger<IntegrationHostLauncher>.Instance);
ServiceErrorMessageTests.cs (1)
161new Microsoft.Extensions.Hosting.Internal.ApplicationLifetime(
15 references to ApplicationLifetime
Aspire.Hosting.RemoteHost.Tests (9)
CodeGeneration\ApiReferenceExportTests.cs (1)
252NullLogger<Microsoft.Extensions.Hosting.Internal.ApplicationLifetime>.Instance),
IntegrationHostLauncherTests.cs (7)
33new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), 55new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), 81new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), 101new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), NullLogger<IntegrationHostLauncher>.Instance); 138new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), NullLogger<IntegrationHostLauncher>.Instance); 158new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), NullLogger<IntegrationHostLauncher>.Instance); 188new ApplicationLifetime(NullLogger<ApplicationLifetime>.Instance), NullLogger<IntegrationHostLauncher>.Instance);
ServiceErrorMessageTests.cs (1)
162NullLogger<Microsoft.Extensions.Hosting.Internal.ApplicationLifetime>.Instance),
Microsoft.Extensions.Hosting (6)
HostBuilder.cs (1)
310services.AddSingleton<IHostApplicationLifetime, ApplicationLifetime>();
Internal\ApplicationLifetime.cs (3)
24private readonly ILogger<ApplicationLifetime> _logger; 27/// Initializes an <see cref="ApplicationLifetime"/> instance using the specified logger. 30public ApplicationLifetime(ILogger<ApplicationLifetime> logger)
Internal\Host.cs (2)
25private readonly ApplicationLifetime _applicationLifetime; 50_applicationLifetime = (applicationLifetime as ApplicationLifetime)!;