Class RedbTransactedActionExtensions

Assembly: redb.Route.Core.dll

DSL extensions for opening an explicit redb transaction inside a route pipeline
and enrolling it in the standard commit/rollback flow.

Pairs with the existing .Transacted(...) / .BeginTransaction(...) /
.CommitTransaction() / .RollbackTransaction() primitives:
when a RedbTransactedAction is registered in exchange.Properties["TRANSACT_ACTION"],
it is committed or rolled back together with all other transports at the standard
boundary.


Resolution model: the underlying is resolved through
,
so anonymous singletons, named singletons, and named per-exchange scoped factories all work
(the same model used by ProcessWithRedb(name, ...)).

public static class RedbTransactedActionExtensions

Inheritance

Object→RedbTransactedActionExtensions

Methods

BeginRedbTransaction(IRouteDefinition, string)

Opens an explicit IRedbTransaction on a named

[Obsolete("Use .Transacted() instead: under an ambient transaction scope redb enlists automatically via core's AmbientConnectionRegistry, so BeginRedbTransaction is a no-op there and only opens its own transaction when no ambient scope is active.")]
public static IRouteDefinition BeginRedbTransaction(this IRouteDefinition route, string name)

BeginRedbTransaction(IRouteDefinition)

Opens an explicit IRedbTransaction on the default

[Obsolete("Use .Transacted() instead: under an ambient transaction scope redb enlists automatically via core's AmbientConnectionRegistry, so BeginRedbTransaction is a no-op there and only opens its own transaction when no ambient scope is active.")]
public static IRouteDefinition BeginRedbTransaction(this IRouteDefinition route)