Class SagaStepEntry
A single saga step entry: forward action + optional compensation.
public sealed record SagaStepEntry : IEquatable<SagaStepEntry>
Inheritance
Implements
Properties
Action
Forward action to execute.
public Func<IExchange, CancellationToken, Task> Action { get; init; }
Compensate
Compensation to run on rollback (null = no compensation).
public Func<IExchange, CancellationToken, Task>? Compensate { get; init; }
Constructors
SagaStepEntry(Func<IExchange, CancellationToken, Task>, Func<IExchange, CancellationToken, Task>?)
A single saga step entry: forward action + optional compensation.