Class DomainEventDispatcher
Provides a default implementation of of the IDomainEventDispatcher interface.
public class DomainEventDispatcher : FireForgetDispatcher, IDomainEventDispatcher, IDispatcher
- Inheritance
-
objectDomainEventDispatcher
- Implements
- Inherited Members
- Extension Methods
Constructors
DomainEventDispatcher(IServiceLocator)
Initializes a new instance of the DomainEventDispatcher class.
public DomainEventDispatcher(IServiceLocator serviceLocator)
Parameters
serviceLocator
IServiceLocatorThe provider of service implementations.
Methods
Raise(IDomainEvent)
Raises the specified request
using Fire-and-Forget/In-Only MEP.
public void Raise(IDomainEvent request)
Parameters
request
IDomainEventThe IDomainEvent to raise.
RaiseAsync(IDomainEvent, Action<AsyncOptions>)
Raises the specified request
using Fire-and-Forget/In-Only MEP.
public Task RaiseAsync(IDomainEvent request, Action<AsyncOptions> setup = null)
Parameters
request
IDomainEventThe IDomainEvent to raise.
setup
Action<AsyncOptions>The AsyncOptions which may be configured.