Class SavvyioOptionsExtensions
- Namespace
- Savvyio
- Assembly
- Savvyio.Core.dll
Extension methods for the SavvyioOptions class.
public static class SavvyioOptionsExtensions
- Inheritance
-
objectSavvyioOptionsExtensions
Methods
AddDispatchers(SavvyioOptions, params Assembly[])
Adds handlers of type IDispatcher from the specified assemblies to the extended options.
public static SavvyioOptions AddDispatchers(this SavvyioOptions options, params Assembly[] assemblies)
Parameters
optionsSavvyioOptionsThe SavvyioOptions to extend.
assembliesAssembly[]The assemblies to scan for IDispatcher implementations.
Returns
- SavvyioOptions
A reference to
optionsso that additional configuration calls can be chained.
Exceptions
- ArgumentNullException
assembliescannot be null.
AddHandlers(SavvyioOptions, params Assembly[])
Adds handlers of type IHandler from the specified assemblies to the extended options.
public static SavvyioOptions AddHandlers(this SavvyioOptions options, params Assembly[] assemblies)
Parameters
optionsSavvyioOptionsThe SavvyioOptions to extend.
assembliesAssembly[]The assemblies to scan for IHandler implementations.
Returns
- SavvyioOptions
A reference to
optionsso that additional configuration calls can be chained.
Exceptions
- ArgumentNullException
assembliescannot be null.