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
serviceLocatorIServiceLocatorThe provider of service implementations.
Methods
Raise(IDomainEvent)
Raises the specified request using Fire-and-Forget/In-Only MEP.
public void Raise(IDomainEvent request)
Parameters
requestIDomainEventThe 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
requestIDomainEventThe IDomainEvent to raise.
setupAction<AsyncOptions>The AsyncOptions which may be configured.