Interface AsyncAnswers<TQuery, TResult>
Represents a asynchronous query handler of a specific type of query.
Namespace: IRM.Messaging
Assembly: IRM.dll
Syntax
public interface AsyncAnswers<in TQuery, TResult>
Type Parameters
TQuery
The type of query to answer. |
TResult
The type of result returned as an answer. |
Methods
Answer(TQuery, CancellationToken)
Called with the query to answer.
Declaration
Task<TResult> Answer(TQuery query, CancellationToken cancellationToken = default(CancellationToken))
Parameters
TQuery
query
The query to answer. |
System.Threading.CancellationToken
cancellationToken
The cancellation instruction. |
Returns
System.Threading.Tasks.Task<TResult>
A task representing the asynchronous operation. |