Method JoinBatch<TBatch>(IExchange, string, Func<TBatch>, string)
The batch a producer keeps in the enclosing block under key: the one it registered earlier in the
block, or a new one from create. A producer that commits all its deferred sends of a block in one
native transaction of its broker collects them in such a batch, which keeps the place of the first send in the
block's commit order. Throws, as does, outside a block.
public static TBatch JoinBatch<TBatch>(IExchange exchange, string key, Func<TBatch> create, string endpoint) where TBatch : class, ITransactedAction