Table of Contents

Class QueryQueue

Namespace
Shift.Common.Timeline.Queries
Assembly
Shift.Common.dll

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

query IQuery<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

handle Func<TQuery, TResult>

Type Parameters

TQuery
TResult