Delegate AsyncSaga<TState>.StepHandler<TMessage>
- Namespace
- PatternKit.Messaging.Sagas
- Assembly
- PatternKit.Core.dll
Async handler used to transition saga state for a typed message.
public delegate ValueTask<TState> AsyncSaga<TState>.StepHandler<TMessage>(TState state, Message<TMessage> message, MessageContext context, CancellationToken cancellationToken)
Parameters
stateTState- Async handler used to transition saga state for a typed message.
messageMessage<TMessage>- Async handler used to transition saga state for a typed message.
contextMessageContext- Async handler used to transition saga state for a typed message.
cancellationTokenCancellationToken- Async handler used to transition saga state for a typed message.
Returns
- ValueTask<TState>
- Async handler used to transition saga state for a typed message.
Type Parameters
TMessage