Table of Contents

AddQueryHandler Method

Definition

Namespace
Savvyio.Queries
Assemblies
Savvyio.Queries.dll
Source
src/Savvyio.Queries/SavvyioOptionsExtensions.cs

AddQueryHandler<TImplementation>(SavvyioOptions)

Adds an implementation of the IQueryHandler interface to HandlerImplementationTypes (if not already registered).

public static SavvyioOptions AddQueryHandler<TImplementation>(this SavvyioOptions options) where TImplementation : class, IQueryHandler

Parameters

options SavvyioOptions

The SavvyioOptions to extend.

Returns

SavvyioOptions

A reference to options so that additional configuration calls can be chained.

Type Parameters

TImplementation

The type that implements the IQueryHandler interface.