IApplicationLifetime Interfaz
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de