Class TransactedActions
Registration of deferred transport actions: an outgoing send or write that a transacted endpoint
(transacted=true) postpones until the enclosing .Transacted() block has committed the database.
An action is accepted only inside an active block. Outside one — a transacted step on a route without
.Transacted(), or after the block has ended — nothing would ever commit it and the write would silently
disappear, so registration fails instead.
public static class TransactedActions
Inheritance
Methods
Defers(IExchange, bool?)
Whether a producer defers its send to the enclosing transacted block, by its transacted parameter.
public static bool Defers(IExchange exchange, bool? transacted)
IsActive(IExchange)
Whether exchange is inside an active transacted block.
public static bool IsActive(IExchange exchange)
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
public static TBatch JoinBatch<TBatch>(IExchange exchange, string key, Func<TBatch> create, string endpoint) where TBatch : class, ITransactedAction
Register(IExchange, string, ITransactedAction, string)
Defers action to the enclosing transacted block, which commits it after the database or rolls
public static void Register(IExchange exchange, string key, ITransactedAction action, string endpoint)
RegisterSend(IExchange, string, Func<CancellationToken, Task>, string)
Defers a prepared send to the enclosing transacted block: send runs once the database has
public static void RegisterSend(IExchange exchange, string key, Func<CancellationToken, Task> send, string endpoint)