Class ExchangeFailureExtensions

Namespace: redb.Route.Core
Assembly: redb.Route.dll

Consumer-side view of an exchange's terminal state. A route whose OnException has no
Handled(true) returns normally with the exception still on the exchange; for a
consumer that decides ack/nack by "did Process throw", that failure would be acknowledged.

public static class ExchangeFailureExtensions

Inheritance

Object→ExchangeFailureExtensions

Methods

ClearFailureHandled(IExchange)

Clears the failure-handled marker: a redelivery, or a continued handler (Camel's setFailureHandled(false)).

public static void ClearFailureHandled(this IExchange exchange)

EndedInFailure(IExchange)

Whether the unit of work did not succeed: an unhandled failure is left on the exchange, or the route marked it

public static bool EndedInFailure(this IExchange exchange)

IsFailureHandled(IExchange)

Whether an error handler handled the failure on this exchange (Camel's ExchangeHelper.isFailureHandled).

public static bool IsFailureHandled(this IExchange exchange)

IsRollbackOnly(IExchange)

Whether the route marked the unit of work for rollback (.RollbackAll()).

public static bool IsRollbackOnly(this IExchange exchange)

MarkFailureHandled(IExchange)

Marks the failure an error handler handled (Camel's setFailureHandled(true)).

public static void MarkFailureHandled(this IExchange exchange)

MarkRollbackOnly(IExchange)

Marks the unit of work for rollback: the enclosing transaction rolls back and the consumer does not acknowledge.

public static void MarkRollbackOnly(this IExchange exchange)

ThrowIfUnhandledFailure(IExchange)

Rethrows the exchange's unhandled failure (stack preserved) so the consumer's existing

public static void ThrowIfUnhandledFailure(this IExchange exchange)