15 lines
493 B
C#
15 lines
493 B
C#
namespace Svrnty.CQRS.Sagas.Abstractions;
|
|
|
|
/// <summary>
|
|
/// Defines a saga with its steps and compensation logic.
|
|
/// </summary>
|
|
/// <typeparam name="TData">The saga's data/context type.</typeparam>
|
|
public interface ISaga<TData> where TData : class, ISagaData, new()
|
|
{
|
|
/// <summary>
|
|
/// Configures the saga steps using the fluent builder.
|
|
/// </summary>
|
|
/// <param name="builder">The saga builder for defining steps.</param>
|
|
void Configure(ISagaBuilder<TData> builder);
|
|
}
|