Interface IAsyncQuery<T1, T2>
- Namespace
- Executables
- Assembly
- executables.dll
Represents an asynchronous query that returns a result.
public interface IAsyncQuery<in T1, T2> : IAsyncExecutable<T1, T2>
Type Parameters
T1Type of the query input.
T2Type of the query result.
- Inherited Members
Methods
Send(T1, CancellationToken)
Sends the query.
ValueTask<T2> Send(T1 input, CancellationToken token = default)
Parameters
inputT1Query input.
tokenCancellationTokenCancellation token.
Returns
- ValueTask<T2>
Asynchronous query result.