10 references to ConsoleLifetime
Microsoft.Extensions.Hosting (10)
ConsoleLifetimeOptions.cs (1)
7
/// Provides option flags for <see cref="Internal.
ConsoleLifetime
"/>.
HostBuilder.netcoreapp.cs (1)
16
services.AddSingleton<IHostLifetime,
ConsoleLifetime
>();
HostingHostBuilderExtensions.cs (4)
343
return hostBuilder.ConfigureServices(collection => collection.AddSingleton<IHostLifetime,
ConsoleLifetime
>());
351
/// <param name="configureOptions">The delegate for configuring the <see cref="
ConsoleLifetime
"/>.</param>
361
collection.AddSingleton<IHostLifetime,
ConsoleLifetime
>();
385
/// <param name="configureOptions">The delegate for configuring the <see cref="
ConsoleLifetime
"/>.</param>
Internal\ConsoleLifetime.cs (4)
27
/// Initializes a <see cref="
ConsoleLifetime
"/> instance using the specified console lifetime options, host environment, host application lifetime, and host options.
38
/// Initializes a <see cref="
ConsoleLifetime
"/> instance using the specified console lifetime options, host environment, host options, and logger factory.
82
((
ConsoleLifetime
)state!).OnApplicationStarted();
87
((
ConsoleLifetime
)state!).OnApplicationStopping();