Table of Contents

Class SavvyioOptionsExtensions

Namespace
Savvyio.Queries
Assembly
Savvyio.Queries.dll

Extension methods for the SavvyioOptions class.

public static class SavvyioOptionsExtensions
Inheritance
Object
SavvyioOptionsExtensions

Methods

AddQueryDispatcher(SavvyioOptions)

Adds a default implementation of the IQueryDispatcher interface.

public static SavvyioOptions AddQueryDispatcher(this SavvyioOptions options)

Parameters

options SavvyioOptions

The SavvyioOptions to extend.

Returns

SavvyioOptions

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

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.