ConsoleLifetime ConsoleLifetime ConsoleLifetime Class

Definition

Listens for Ctrl+C or SIGTERM and initiates shutdown.

public class ConsoleLifetime : IDisposable, Microsoft.Extensions.Hosting.IHostLifetime
type ConsoleLifetime = class
    interface IHostLifetime
    interface IDisposable
Public Class ConsoleLifetime
Implements IDisposable, IHostLifetime
Inheritance
ConsoleLifetimeConsoleLifetimeConsoleLifetime
Implements

Constructors

ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime) ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime) ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime)
ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostingEnvironment, IApplicationLifetime) ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostingEnvironment, IApplicationLifetime) ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostingEnvironment, IApplicationLifetime)
ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime, ILoggerFactory) ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime, ILoggerFactory) ConsoleLifetime(IOptions<ConsoleLifetimeOptions>, IHostEnvironment, IHostApplicationLifetime, ILoggerFactory)

Methods

Dispose() Dispose() Dispose()
StopAsync(CancellationToken) StopAsync(CancellationToken) StopAsync(CancellationToken)
WaitForStartAsync(CancellationToken) WaitForStartAsync(CancellationToken) WaitForStartAsync(CancellationToken)

Applies to