Table of Contents

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

state TState
Async predicate used to decide whether a typed saga step should handle a message.
message Message<TMessage>
Async predicate used to decide whether a typed saga step should handle a message.
context MessageContext
Async predicate used to decide whether a typed saga step should handle a message.
cancellationToken CancellationToken
Async predicate used to decide whether a typed saga step should handle a message.

Returns

ValueTask<bool>
Async predicate used to decide whether a typed saga step should handle a message.

Type Parameters

TMessage