Table of Contents

Delegate AsyncContentRouter<TPayload, TResult>.RoutePredicate

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

Async predicate used to decide whether a route matches.

public delegate ValueTask<bool> AsyncContentRouter<TPayload, TResult>.RoutePredicate(Message<TPayload> message, MessageContext context, CancellationToken cancellationToken)

Parameters

message Message<TPayload>
Async predicate used to decide whether a route matches.
context MessageContext
Async predicate used to decide whether a route matches.
cancellationToken CancellationToken
Async predicate used to decide whether a route matches.

Returns

ValueTask<bool>
Async predicate used to decide whether a route matches.