HostOptions.BackgroundServiceExceptionBehavior Eigenschaft

Definition

Ruft ab oder legt das Verhalten fest, das IHost folgt, wenn eine der BackgroundService Instanzen eine unbehandelte Ausnahme auslöst.

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

Eigenschaftswert

Der Standardwert lautet StopHost.

Hinweise

Wird standardmäßig auf StopHost festgelegt.

Gilt für: