AddMediator Method
Definition
- Namespace
- Savvyio.Extensions
- Assemblies
- Savvyio.Extensions.Dispatchers.dll
AddMediator<TImplementation>(SavvyioOptions)
Adds an implementation of the IMediator interface.
public static SavvyioOptions AddMediator<TImplementation>(this SavvyioOptions options) where TImplementation : class, IMediator
Parameters
optionsSavvyioOptionsThe SavvyioOptions to extend.
Returns
- SavvyioOptions
A reference to
optionsso that additional configuration calls can be chained.
Type Parameters
TImplementationThe type of the implementation to use.
Remarks
The implementation will be type forwarded to: ICommandDispatcher, IDomainEventDispatcher, IIntegrationEventDispatcher and IQueryDispatcher.