Table of Contents

Delegate AsyncRecipientList<TPayload>.RecipientPredicate

Namespace
PatternKit.Messaging.Routing
Assembly
PatternKit.Core.dll

Async predicate used to decide whether a recipient should receive a message.

public delegate ValueTask<bool> AsyncRecipientList<TPayload>.RecipientPredicate(Message<TPayload> message, MessageContext context, CancellationToken cancellationToken)

Parameters

message Message<TPayload>
Async predicate used to decide whether a recipient should receive a message.
context MessageContext
Async predicate used to decide whether a recipient should receive a message.
cancellationToken CancellationToken
Async predicate used to decide whether a recipient should receive a message.

Returns

ValueTask<bool>
Async predicate used to decide whether a recipient should receive a message.