Table of Contents

Class DomainEventDispatcher

Namespace
Savvyio.Domain
Assembly
Savvyio.Domain.dll

Provides a default implementation of of the IDomainEventDispatcher interface.

public class DomainEventDispatcher : FireForgetDispatcher, IDomainEventDispatcher, IDispatcher
Inheritance
Object
DomainEventDispatcher
Implements
Inherited Members
Extension Methods

Constructors

DomainEventDispatcher(IServiceLocator)

Initializes a new instance of the DomainEventDispatcher class.

public DomainEventDispatcher(IServiceLocator serviceLocator)

Parameters

serviceLocator IServiceLocator

The 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 IDomainEvent

The 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 IDomainEvent

The IDomainEvent to raise.

setup Action<AsyncOptions>

The AsyncOptions which may be configured.

Returns

Task

A System.Threading.Tasks.Task that represents the asynchronous operation.

See Also