StreamQueryHandlerDelegate<TMessage, TResult> delegate
Namespace: Vitreous.Abstractions
Assembly: Vitreous.dll
A delegate representing the next step in a stream query pipeline. Returns a Result<T> wrapping the lazy IAsyncEnumerable<T> so that setup failures short-circuit before any item is produced.
public delegate ValueTask<Result<IAsyncEnumerable<TResult>>> StreamQueryHandlerDelegate<TMessage, TResult>(TMessage message, CancellationToken ct)Parameters
Section titled “Parameters”message TMessage
Returns
Section titled “Returns”ValueTask<Result<IAsyncEnumerable<TResult>>>
Type Parameters
Section titled “Type Parameters”TMessage
The stream query type.
TResult
The type of each item yielded by the stream.