38 lines
764 B
C#
38 lines
764 B
C#
namespace Svrnty.CQRS.Sagas.Abstractions;
|
|
|
|
/// <summary>
|
|
/// Represents the execution state of a saga.
|
|
/// </summary>
|
|
public enum SagaStatus
|
|
{
|
|
/// <summary>
|
|
/// Saga has not started execution.
|
|
/// </summary>
|
|
NotStarted,
|
|
|
|
/// <summary>
|
|
/// Saga is currently executing steps.
|
|
/// </summary>
|
|
InProgress,
|
|
|
|
/// <summary>
|
|
/// Saga completed successfully.
|
|
/// </summary>
|
|
Completed,
|
|
|
|
/// <summary>
|
|
/// Saga failed and compensation has not been triggered.
|
|
/// </summary>
|
|
Failed,
|
|
|
|
/// <summary>
|
|
/// Saga is currently executing compensation steps.
|
|
/// </summary>
|
|
Compensating,
|
|
|
|
/// <summary>
|
|
/// Saga has been compensated (rolled back) successfully.
|
|
/// </summary>
|
|
Compensated
|
|
}
|