Lire en anglais

Partager via


BackgroundServiceExceptionBehavior Énumération

Définition

Spécifie un comportement que le IHost respectera si une exception non prise en charge se produit dans l’une de ses BackgroundService instances.

C#
public enum BackgroundServiceExceptionBehavior
Héritage
BackgroundServiceExceptionBehavior

Champs

Nom Valeur Description
Ignore 1

Ignorez les exceptions levées dans BackgroundService.

StopHost 0

Arrête le IHost instance.

S’applique à

Produit Versions
.NET 6, 7, 8, 9
.NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1