Delegate AsyncSaga<TState>.StepPredicate<TMessage>
- Namespace
- PatternKit.Messaging.Sagas
- Assembly
- PatternKit.Core.dll
Async predicate used to decide whether a typed saga step should handle a message.
public delegate ValueTask<bool> AsyncSaga<TState>.StepPredicate<TMessage>(TState state, Message<TMessage> message, MessageContext context, CancellationToken cancellationToken)
Parameters
stateTState- Async predicate used to decide whether a typed saga step should handle a message.
messageMessage<TMessage>- Async predicate used to decide whether a typed saga step should handle a message.
contextMessageContext- Async predicate used to decide whether a typed saga step should handle a message.
cancellationTokenCancellationToken- Async predicate used to decide whether a typed saga step should handle a message.
Returns
Type Parameters
TMessage