SagaTransitionsType
PackageFCQRS
C#-friendly factory methods for SagaTransition
Specification
Kind
Type
Members
4
Examples
0
NextStateSignature
SagaTransitions.NextState(newState)
StaySignature
SagaTransitions.Stay()
StayExpectingSignature
SagaTransitions.StayExpecting(expectation)
StopSagaSignature
SagaTransitions.StopSaga()
Summary
| Name | Signature | Synopsis |
|---|---|---|
| NextState | SagaTransitions.NextState(newState) | Transition to a new state |
| Stay | SagaTransitions.Stay() | Stay in the current state (no transition) |
| StayExpecting | SagaTransitions.StayExpecting(expectation) | Stay in the current state with a declared expectation (alternative to setting SagaSideEffectResult.Expect alongside Stay) |
| StopSaga | SagaTransitions.StopSaga() | Stop the saga (completes the saga lifecycle) |
Transition to a new state
Parameters
| Name | Type | Description |
|---|---|---|
| newState | 'TState |
Returns
SagaTransition<'TState>
Stay in the current state (no transition)
Returns
SagaTransition<'TState>
Stay in the current state with a declared expectation (alternative to
setting SagaSideEffectResult.Expect alongside Stay)
Parameters
| Name | Type | Description |
|---|---|---|
| expectation | Expectation |
Returns
SagaTransition<'TState>