UseAutomaticHandlerDiscovery Method
Definition
- Namespace
- Savvyio.Extensions
- Assemblies
- Savvyio.Extensions.Dispatchers.dll
UseAutomaticHandlerDiscovery(SavvyioOptions, bool)
Enforce automatic discovery of dispatchers implementing the IHandler interface using either bruteAssemblyScanning or lightweight GetCallingAssembly().
public static SavvyioOptions UseAutomaticHandlerDiscovery(this SavvyioOptions options, bool bruteAssemblyScanning = false)
Parameters
optionsSavvyioOptionsThe SavvyioOptions to extend.
bruteAssemblyScanningbooltrueto use brute assembly scanning for all IHandler interface implementations throughout the application domain; otherwise,false.
Returns
- SavvyioOptions
A reference to
optionsso that additional configuration calls can be chained.