Table of Contents

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

message Message<TPayload>
Async handler executed for the first matching route.
context MessageContext
Async handler executed for the first matching route.
cancellationToken CancellationToken
Async handler executed for the first matching route.

Returns

ValueTask<TResult>
Async handler executed for the first matching route.