Lenguaje

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.

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
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
Public Interface IApplicationLifetime
Atributos

Propiedades

Nombre Description
ApplicationStarted
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.

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.

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

Nombre Description
StopApplication()
Obsoletos.

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

Se aplica a