Delegate AsyncContentRouter<TPayload, TResult>.RouteHandler
- Namespace
- PatternKit.Messaging.Routing
- Assembly
- PatternKit.Core.dll
Async handler executed for the first matching route.
public delegate ValueTask<TResult> AsyncContentRouter<TPayload, TResult>.RouteHandler(Message<TPayload> message, MessageContext context, CancellationToken cancellationToken)
Parameters
messageMessage<TPayload>- Async handler executed for the first matching route.
contextMessageContext- Async handler executed for the first matching route.
cancellationTokenCancellationToken- Async handler executed for the first matching route.
Returns
- ValueTask<TResult>
- Async handler executed for the first matching route.