AddQueryHandler Method
Definition
- Assemblies
- Savvyio.Queries.dll
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
optionsSavvyioOptionsThe SavvyioOptions to extend.
Returns
- SavvyioOptions
A reference to
optionsso that additional configuration calls can be chained.
Type Parameters
TImplementationThe type that implements the IQueryHandler interface.