Interface IQueryDispatcher
- Namespace
- Savvyio.Queries
- Assembly
- Savvyio.Core.dll
Defines a Query dispatcher that uses Request-Reply/In-Out MEP.
public interface IQueryDispatcher : IDispatcher
Methods
Query<TResult>(IQuery<TResult>)
Queries the specified request
using Request-Reply/In-Out MEP.
TResult Query<TResult>(IQuery<TResult> request)
Parameters
request
IQuery<TResult>The IQuery<TResult> to request.
Returns
- TResult
The outcome of the query operation.
Type Parameters
TResult
The type of the result to return.
QueryAsync<TResult>(IQuery<TResult>, Action<AsyncOptions>)
Queries the specified request
asynchronous using Request-Reply/In-Out MEP.
Task<TResult> QueryAsync<TResult>(IQuery<TResult> request, Action<AsyncOptions> setup = null)
Parameters
request
IQuery<TResult>The IQuery<TResult> to request.
setup
Action<AsyncOptions>The AsyncOptions which may be configured.
Returns
- Task<TResult>
A System.Threading.Tasks.Task<TResult> that represents the asynchronous operation. The task result contains the outcome of the query operation.
Type Parameters
TResult
The type of the result to return.