Share via


HostOptions.BackgroundServiceExceptionBehavior Propiedad

Definición

Obtiene o establece el comportamiento que IHost seguirá cuando cualquiera de sus BackgroundService instancias produzca una excepción no controlada.

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

Valor de propiedad

El valor predeterminado es StopHost.

Se aplica a