Table of Contents

AddDispatcher Method

Definition

Namespace
Savvyio
Assemblies
Savvyio.Core.dll
Source
src/Savvyio.Core/SavvyioOptions.cs

AddDispatcher<TDispatcher, TImplementation>()

Adds a dispatcher of type TDispatcher to DispatcherServiceTypes (if not already registered) and DispatcherImplementationTypes (if not already registered).

public SavvyioOptions AddDispatcher<TDispatcher, TImplementation>() where TDispatcher : IDispatcher where TImplementation : class, TDispatcher

Returns

SavvyioOptions

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

Type Parameters

TDispatcher

The type of the IDispatcher interface to add.

TImplementation

The type of the implementation to use.

AddDispatcher(Type, Type)

Adds a dispatcher of type IDispatcher to DispatcherServiceTypes (if not already registered) and DispatcherImplementationTypes (if not already registered).

public SavvyioOptions AddDispatcher(Type service, Type implementation)

Parameters

service Type

The Type of the IDispatcher interface to add.

implementation Type

The type of the implementation to use.

Returns

SavvyioOptions

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