IHostApplicationLifetime Interfaz
Definición
Permite a los consumidores recibir notificaciones de eventos de duración de la aplicación.Allows consumers to be notified of application lifetime events.
public interface class IHostApplicationLifetime
public interface IHostApplicationLifetime
type IHostApplicationLifetime = interface
Public Interface IHostApplicationLifetime
Propiedades
| ApplicationStarted |
Se desencadena cuando el host de la aplicación se ha iniciado completamente.Triggered when the application host has fully started. |
| ApplicationStopped |
Se desencadena cuando el host de la aplicación está realizando un cierre estable.Triggered when the application host is performing a graceful shutdown. El apagado se bloqueará hasta que se complete este evento.Shutdown will block until this event completes. |
| ApplicationStopping |
Se desencadena cuando el host de la aplicación está realizando un cierre estable.Triggered when the application host is performing a graceful shutdown. El apagado se bloqueará hasta que se complete este evento.Shutdown will block until this event completes. |
Métodos
| StopApplication() |
Solicita la terminación de la aplicación actual.Requests termination of the current application. |