Table of Contents

UseAutomaticDispatcherDiscovery Method

Definition

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

UseAutomaticDispatcherDiscovery(SavvyioOptions, bool)

Enforce automatic discovery of handlers implementing the IDispatcher interface using either bruteAssemblyScanning or lightweight GetCallingAssembly().

public static SavvyioOptions UseAutomaticDispatcherDiscovery(this SavvyioOptions options, bool bruteAssemblyScanning = false)

Parameters

options SavvyioOptions

The SavvyioOptions to extend.

bruteAssemblyScanning bool

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

Returns

SavvyioOptions

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