IHostLifetime Interface
Definição
public interface class IHostLifetime
public interface IHostLifetime
type IHostLifetime = interface
Public Interface IHostLifetime
- Derivado
Métodos
| StopAsync(CancellationToken) |
Chamado de StopAsync(CancellationToken) para indicar que o host está sendo interrompido e é hora de desligar.Called from StopAsync(CancellationToken) to indicate that the host is stopping and it's time to shut down. |
| WaitForStartAsync(CancellationToken) |
Chamado no início de StartAsync(CancellationToken), que aguardará até que ele seja concluído antes de continuar.Called at the start of StartAsync(CancellationToken) which will wait until it's complete before continuing. Isso pode ser usado para atrasar a inicialização até que seja sinalizado por um evento externo.This can be used to delay startup until signaled by an external event. |