Method RegisterSend(IExchange, string, Func<CancellationToken, Task>, string)

Assembly: redb.Route.dll

Defers a prepared send to the enclosing transacted block: send runs once the database has
committed and is dropped on rollback. Build everything the send needs from the exchange before registering it;
the delegate runs after the rest of the block. Throws, as does, outside a block.

public static void RegisterSend(IExchange exchange, string key, Func<CancellationToken, Task> send, string endpoint)