Share via


HostOptions.BackgroundServiceExceptionBehavior Propriété

Définition

Obtient ou définit le comportement que IHost le suivra quand l’une de ses BackgroundService instances lève une exception non gérée.

public:
 property Microsoft::Extensions::Hosting::BackgroundServiceExceptionBehavior BackgroundServiceExceptionBehavior { Microsoft::Extensions::Hosting::BackgroundServiceExceptionBehavior get(); void set(Microsoft::Extensions::Hosting::BackgroundServiceExceptionBehavior value); };
public Microsoft.Extensions.Hosting.BackgroundServiceExceptionBehavior BackgroundServiceExceptionBehavior { get; set; }
member this.BackgroundServiceExceptionBehavior : Microsoft.Extensions.Hosting.BackgroundServiceExceptionBehavior with get, set
Public Property BackgroundServiceExceptionBehavior As BackgroundServiceExceptionBehavior

Valeur de propriété

Par défaut, il s’agit de StopHost.

S’applique à