IApplicationLifetime Interface

Definição

Cuidado

This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.IHostApplicationLifetime.

Cuidado

IApplicationLifetime has been deprecated. Use Microsoft.Extensions.Hosting.IHostApplicationLifetime instead.

Permite que os consumidores executem a limpeza durante um desligamento normal.

Esse tipo é obsoleto e será removido em uma versão futura. A alternativa recomendada é Microsoft.Extensions.Hosting.IHostApplicationLifetime.

public interface class IApplicationLifetime
public interface IApplicationLifetime
[System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.IHostApplicationLifetime.", false)]
public interface IApplicationLifetime
[System.Obsolete("IApplicationLifetime has been deprecated. Use Microsoft.Extensions.Hosting.IHostApplicationLifetime instead.")]
public interface IApplicationLifetime
type IApplicationLifetime = interface
[<System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.IHostApplicationLifetime.", false)>]
type IApplicationLifetime = interface
[<System.Obsolete("IApplicationLifetime has been deprecated. Use Microsoft.Extensions.Hosting.IHostApplicationLifetime instead.")>]
type IApplicationLifetime = interface
Public Interface IApplicationLifetime
Derivado
Atributos

Propriedades

ApplicationStarted
Obsoleto.
Obsoleto.

Disparado quando o host de aplicativo foi totalmente iniciado e está prestes a aguardar um desligamento normal.

ApplicationStopped
Obsoleto.
Obsoleto.

Disparado quando o host de aplicativo está executando um desligamento normal. Todas as solicitações devem ser concluídas neste ponto. O desligamento será bloqueado até que esse evento seja concluído.

ApplicationStopping
Obsoleto.
Obsoleto.

Disparado quando o host de aplicativo está executando um desligamento normal. As solicitações ainda podem estar em curso. O desligamento será bloqueado até que esse evento seja concluído.

Métodos

StopApplication()
Obsoleto.
Obsoleto.

Solicita o encerramento do aplicativo atual.

Aplica-se a