7 references to ConsoleLifetimeOptions
Microsoft.Extensions.Hosting (7)
HostingHostBuilderExtensions.cs (2)
361
public static IHostBuilder UseConsoleLifetime(this IHostBuilder hostBuilder, Action<
ConsoleLifetimeOptions
> configureOptions)
396
public static Task RunConsoleAsync(this IHostBuilder hostBuilder, Action<
ConsoleLifetimeOptions
> configureOptions, CancellationToken cancellationToken = default)
Internal\ConsoleLifetime.cs (5)
29
/// <param name="options">An object used to retrieve <see cref="
ConsoleLifetimeOptions
"/> instances.</param>
34
public ConsoleLifetime(IOptions<
ConsoleLifetimeOptions
> options, IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, IOptions<HostOptions> hostOptions)
40
/// <param name="options">An object used to retrieve <see cref="
ConsoleLifetimeOptions
"/> instances.</param>
46
public ConsoleLifetime(IOptions<
ConsoleLifetimeOptions
> options, IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, IOptions<HostOptions> hostOptions, ILoggerFactory loggerFactory)
61
private
ConsoleLifetimeOptions
Options { get; }