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

NameSignatureSynopsis
NextStateSagaTransitions.NextState(newState)Transition to a new state
StaySagaTransitions.Stay()Stay in the current state (no transition)
StayExpectingSagaTransitions.StayExpecting(expectation)Stay in the current state with a declared expectation (alternative to setting SagaSideEffectResult.Expect alongside Stay)
StopSagaSagaTransitions.StopSaga()Stop the saga (completes the saga lifecycle)

NextState

SagaTransitions.NextState(newState)
Member
Transition to a new state

Parameters

NameTypeDescription
newState'TState

Returns

SagaTransition<'TState>

Stay

SagaTransitions.Stay()
Member
Stay in the current state (no transition)

Returns

SagaTransition<'TState>

StayExpecting

SagaTransitions.StayExpecting(expectation)
Member
Stay in the current state with a declared expectation (alternative to setting SagaSideEffectResult.Expect alongside Stay)

Parameters

NameTypeDescription
expectationExpectation

Returns

SagaTransition<'TState>

StopSaga

SagaTransitions.StopSaga()
Member
Stop the saga (completes the saga lifecycle)

Returns

SagaTransition<'TState>