Share via


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.

Attention

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

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
[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
Dérivé
Attributs

Propriétés

ApplicationStarted
Obsolète.
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.
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.
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.
Obsolète.

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

S’applique à