IApplicationLifetime Interfaz

Definición

Precaución

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

Precaución

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

Permite a los consumidores realizar la limpieza durante un cierre estable.

Este tipo está obsoleto y se quitará en una versión futura. La alternativa recomendada es 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

Propiedades

ApplicationStarted
Obsoletos.
Obsoletos.

Se desencadena cuando el host de la aplicación se ha iniciado completamente y está a punto de esperar un cierre estable.

ApplicationStopped
Obsoletos.
Obsoletos.

Se desencadena cuando el host de la aplicación está realizando un cierre estable. En este momento, todas las solicitudes se deben haber completado. El apagado se bloqueará hasta que se complete este evento.

ApplicationStopping
Obsoletos.
Obsoletos.

Se desencadena cuando el host de la aplicación está realizando un cierre estable. Es posible que las solicitudes todavía se estén procesando. El apagado se bloqueará hasta que se complete este evento.

Métodos

StopApplication()
Obsoletos.
Obsoletos.

Solicita la terminación de la aplicación actual.

Se aplica a