HostOptions.BackgroundServiceExceptionBehavior 属性

定义

获取或设置 在其BackgroundService任何实例引发未经处理的异常时将遵循的行为IHost

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

属性值

默认为 StopHost

适用于