Interface IExchangeCompletion
Work attached to the outcome of an exchange's unit of work (Apache Camel: a Synchronization passed to
addOnCompletion). Register it with ; exactly one of the two
methods runs, once, when the unit of work ends.
A failing completion is logged and does not change the exchange's outcome or stop the other completions. Both methods
receive : the outcome has to be recorded even for an exchange that was cancelled.
public interface IExchangeCompletion
Methods
OnComplete(IExchange, CancellationToken)
The unit of work succeeded: the consumer acknowledges the message.
Task OnComplete(IExchange exchange, CancellationToken ct)
OnFailure(IExchange, CancellationToken)
The unit of work did not succeed: an exception escaped the route, a failure was left unhandled on the exchange,
Task OnFailure(IExchange exchange, CancellationToken ct)