Table of Contents

AddMediator Method

Definition

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

AddMediator<TImplementation>(SavvyioOptions)

Adds an implementation of the IMediator interface.

public static SavvyioOptions AddMediator<TImplementation>(this SavvyioOptions options) where TImplementation : class, IMediator

Parameters

options SavvyioOptions

The SavvyioOptions to extend.

Returns

SavvyioOptions

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

Type Parameters

TImplementation

The type of the implementation to use.

Remarks

The implementation will be type forwarded to: ICommandDispatcher, IDomainEventDispatcher, IIntegrationEventDispatcher and IQueryDispatcher.