Method OnCompletion(IExchange, IExchangeCompletion)

Assembly: redb.Route.dll

Registers completion to run when the unit of work of exchange ends (Apache
Camel: addOnCompletion with a Synchronization): when it
succeeded, when it did not.

The unit of work belongs to the outermost route the exchange entered and ends before that route returns to its
consumer — so a completion has run before the message is acknowledged or handed back to the broker. A route called
with the same exchange (direct:) shares it. An exchange that entered no route of its own — a Split or
Multicast branch, the copy .Threads() continues on, an exchange processed outside any route — ends its unit of
work when it is released, and its outcome is then read from the exchange. Copies do not inherit completions.

public static void OnCompletion(IExchange exchange, IExchangeCompletion completion)