Skip to content

MessageHandlerDelegate<TMessage, TResult> delegate

Namespace: Vitreous.Abstractions
Assembly: Vitreous.dll

A delegate representing the next step in a command/query pipeline. The message and cancellation token are passed explicitly to avoid closure allocations.

public delegate ValueTask<Result<TResult>> MessageHandlerDelegate<TMessage, TResult>(TMessage message, CancellationToken ct)

message TMessage

ct CancellationToken

ValueTask<Result<TResult>>

TMessage

The command or query type.

TResult

The success value type.