Interface ISagaDefinition
Fluent builder for configuring saga steps with forward actions and compensation.
public interface ISagaDefinition
Methods
OnCompletion(Action<IExchange>)
Sets a callback invoked when all saga steps complete successfully.
ISagaDefinition OnCompletion(Action<IExchange> callback)
OnCompletion(Func<IExchange, CancellationToken, Task>)
Sets an async callback invoked when all saga steps complete successfully.
ISagaDefinition OnCompletion(Func<IExchange, CancellationToken, Task> callback)
Step(Action<IExchange>, Action<IExchange>)
Adds a synchronous saga step with compensation.
ISagaDefinition Step(Action<IExchange> action, Action<IExchange> compensate)
Step(Action<IExchange>)
Adds a forward-only saga step (no compensation on rollback).
ISagaDefinition Step(Action<IExchange> action)
Step(Func<IExchange, CancellationToken, Task>, Func<IExchange, CancellationToken, Task>)
Adds an async saga step with compensation.
ISagaDefinition Step(Func<IExchange, CancellationToken, Task> action, Func<IExchange, CancellationToken, Task> compensate)
Step(Func<IExchange, CancellationToken, Task>)
Adds an async forward-only saga step (no compensation on rollback).
ISagaDefinition Step(Func<IExchange, CancellationToken, Task> action)
Step(IProcessor, IProcessor?)
Adds a saga step from processor instances — the seam declarative forms use (Route-XML
ISagaDefinition Step(IProcessor action, IProcessor? compensate = null)