Class TransactionDefinition

Assembly: redb.Route.dll

Scope-opener definition for declarative transaction management.
All child steps execute inside a which:
Wraps the inner pipeline in a .Auto-commits all instances on success.Auto-rolls-back on exception or cancellation.
No explicit CommitTransaction() / RollbackTransaction() needed.
Inherits the leaf DSL from ;
close with or the universal .

public class TransactionDefinition : RouteDefinitionBase<TransactionDefinition>, IRouteDefinition, IProcessorDefinition, IRouteScope, IDurableScope

Inheritance

Implements

Inherited Members

Properties

Policy

The transaction policy this scope will use (null = default Required).

public TransactionPolicy? Policy { get; }

Methods

CreateProcessor(IRouteContext)

Compile this node into a runtime processor.

public override IProcessor CreateProcessor(IRouteContext context)

DeadLetterChannel(string)

Apache Camel parity: errorHandler(deadLetterChannel("...")).

public TransactionDefinition DeadLetterChannel(string deadLetterUri)

End()

Closes this scope and returns the parent .

public IRouteDefinition End()

EndTransaction()

Closes this transaction scope and returns the parent route definition.

public IRouteDefinition EndTransaction()

Retry(int, TimeSpan)

Apache Camel parity: errorHandler(defaultErrorHandler().maximumRedeliveries(n).redeliveryDelay(d)).

public TransactionDefinition Retry(int attempts, TimeSpan delay)