Class QueryQueue
Implements a basic query queue. The purpose of the queue is to route queries to handler methods; validation of a query itself is the responsibility of its handler.
public class QueryQueue : IQueryQueue
- Inheritance
-
QueryQueue
- Implements
- Inherited Members
- Extension Methods
Constructors
QueryQueue()
public QueryQueue()
Methods
Send<TResult>(IQuery<TResult>)
public TResult Send<TResult>(IQuery<TResult> query)
Parameters
queryIQuery<TResult>
Returns
- TResult
Type Parameters
TResult
Subscribe<TQuery, TResult>(Func<TQuery, TResult>)
public void Subscribe<TQuery, TResult>(Func<TQuery, TResult> handle) where TQuery : IQuery<TResult>
Parameters
handleFunc<TQuery, TResult>
Type Parameters
TQueryTResult