Table of Contents

Enum BackgroundExecutionExceptionBehavior

Namespace
Excalibur.Dispatch.Options.Threading
Assembly
Excalibur.Dispatch.dll

Specifies what happens when a message executed in the background fails.

public enum BackgroundExecutionExceptionBehavior
Extension Methods

Fields

LogOnly = 0

The failure is logged as an error and the host keeps running. This is the default.

StopHost = 1

The failure is logged, and the host is then asked to stop through IHostApplicationLifetime.StopApplication(). The host must provide IHostApplicationLifetime; startup fails if it does not.

Remarks

This is a host-level policy, in the same shape as HostOptions.BackgroundServiceExceptionBehavior: it is configured once for the application, never per message.