IApplicationLifetime Interface

Définition

Attention

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

Permet aux consommateurs d’effectuer un nettoyage pendant un arrêt approprié.

Ce type est obsolète et sera supprimé dans une version ultérieure. L’alternative recommandée est 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
Attributs

Propriétés

ApplicationStarted
Obsolète.

Déclenché lorsque l’hôte d’application a complètement démarré et qu’il s’apprête à attendre un arrêt approprié.

ApplicationStopped
Obsolète.

Déclenché quand l’hôte d’application effectue un arrêt normal. Toutes les demandes doivent être terminées à ce stade. L’arrêt est bloqué tant que cet événement n’est pas terminé.

ApplicationStopping
Obsolète.

Déclenché quand l’hôte d’application effectue un arrêt normal. Les demandes peuvent toujours être en cours. L’arrêt est bloqué tant que cet événement n’est pas terminé.

Méthodes

StopApplication()
Obsolète.

Demande l’arrêt de l’application active.

S’applique à