Taal

ApplicationLifetime Klas

Definitie

Hiermee kunnen gebruikers opschonen tijdens een probleemloos afsluiten.

public ref class ApplicationLifetime : Microsoft::Extensions::Hosting::IApplicationLifetime, Microsoft::Extensions::Hosting::IHostApplicationLifetime
public class ApplicationLifetime : Microsoft.Extensions.Hosting.IApplicationLifetime, Microsoft.Extensions.Hosting.IHostApplicationLifetime
type ApplicationLifetime = class
    interface IApplicationLifetime
    interface IHostApplicationLifetime
Public Class ApplicationLifetime
Implements IApplicationLifetime, IHostApplicationLifetime
Overname
ApplicationLifetime
Implementeringen

Opmerkingen

Deze API ondersteunt de .NET infrastructuur en is niet bedoeld om rechtstreeks vanuit uw code te worden gebruikt.

Constructors

Name Description
ApplicationLifetime(ILogger<ApplicationLifetime>)

Initialiseert een ApplicationLifetime exemplaar met behulp van de opgegeven logboekregistratie.

Eigenschappen

Name Description
ApplicationStarted

Hiermee haalt u een annuleringstoken op. Geactiveerd wanneer de toepassingshost volledig is gestart en wacht op een probleemloos afsluiten.

ApplicationStopped

Hiermee haalt u een annuleringstoken op. Geactiveerd wanneer de toepassingshost een probleemloos afsluiten uitvoert. Alle aanvragen moeten op dit moment zijn voltooid. Afsluiten wordt geblokkeerd totdat deze gebeurtenis is voltooid.

ApplicationStopping

Hiermee haalt u een annuleringstoken op. Geactiveerd wanneer de toepassingshost een probleemloos afsluiten uitvoert. De aanvraag kan nog steeds in de vlucht zijn. Afsluiten wordt geblokkeerd totdat deze gebeurtenis is voltooid.

Methoden

Name Description
NotifyStarted()

Triggers ApplicationStarted en blokken totdat deze is voltooid.

NotifyStopped()

Triggers ApplicationStopped en blokken totdat deze is voltooid.

StopApplication()

Triggers ApplicationStopping en blokken totdat deze is voltooid.

Van toepassing op