Table of Contents

UseAutomaticHandlerDiscovery Method

Definition

Namespace
Savvyio.Extensions
Assemblies
Savvyio.Extensions.Dispatchers.dll
Source
src/Savvyio.Extensions.Dispatchers/SavvyioOptionsExtensions.cs

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

options SavvyioOptions

The SavvyioOptions to extend.

bruteAssemblyScanning bool

true to use brute assembly scanning for all IHandler interface implementations throughout the application domain; otherwise, false.

Returns

SavvyioOptions

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