Class RedbTransactedAction

Assembly: redb.Route.Core.dll

Adapter that bridges to the route-pipeline
contract used by TransactedProcessor and
BeginTransactionProcessor.

Allows an explicit redb-level transaction to be enrolled in the standard
exchange.Properties["TRANSACT_ACTION"] dictionary so that it commits or rolls back
alongside other transports (Kafka, Redis, etc.) via the existing pipeline machinery,
instead of forcing route authors to write try/catch blocks around
.


On the underlying is committed and disposed;
on it is rolled back and disposed. The instance is single-use.


Note: /
do not accept a , so the token passed to
is intentionally ignored.

public sealed class RedbTransactedAction : ITransactedAction

Inheritance

Object→RedbTransactedAction

Implements

Properties

Transaction

The wrapped redb transaction (for diagnostics / advanced scenarios).

public IRedbTransaction Transaction { get; }

Methods

Commit(CancellationToken)

Commits the transaction.

public Task Commit(CancellationToken ct = default)

Rollback(CancellationToken)

Rolls back the transaction.

public Task Rollback(CancellationToken ct = default)

Constructors

RedbTransactedAction(IRedbTransaction)

Creates a new adapter wrapping the given redb transaction.