Interface ISaga
- Namespace
- Stratara.Sagas.Abstractions
- Assembly
- Stratara.Sagas.dll
Marker interface for a Stratara saga (a process manager that reacts to events flowing through the
event bundle). Implementations declare one or more HandleAsync(TEvent, CancellationToken)
methods — public or private — that the SagaMethodInvoker discovers via reflection.
public interface ISaga
- Extension Methods
Remarks
Sagas are registered as scoped services. A new instance is resolved per event bundle, so cross-bundle
state must be persisted externally (event store, read store, aggregate). Mark handler methods with
[JetBrains.Annotations.UsedImplicitly] to suppress unused-member warnings.