Table of Contents

Class QueryHandler

Namespace
Savvyio.Queries
Assembly
Savvyio.Queries.dll

Provides a generic and consistent way of handling Query objects that implements the IQuery interface. This is an abstract class.

public abstract class QueryHandler : IQueryHandler, IRequestReplyHandler<IQuery>, IHandler<IQuery>, IHandler
Inheritance
Object
QueryHandler
Implements

Constructors

QueryHandler()

Initializes a new instance of the QueryHandler class.

protected QueryHandler()

Properties

Delegates

Gets the activator responsible of invoking delegates that handles IQuery.

public IRequestReplyActivator<IQuery> Delegates { get; }

Property Value

IRequestReplyActivator<IQuery>

The activator responsible of invoking delegates that handles IQuery.

Methods

RegisterDelegates(IRequestReplyRegistry<IQuery>)

Registers the delegates responsible of handling types that implements the IQuery interface.

protected abstract void RegisterDelegates(IRequestReplyRegistry<IQuery> handlers)

Parameters

handlers IRequestReplyRegistry<IQuery>

The registry that store the delegates of type IQuery.

See Also