Table of Contents

Interface IDomainEventDispatcher

Namespace
Savvyio.Domain
Assembly
Savvyio.Core.dll

Defines a Domain Event dispatcher that uses Fire-and-Forget/In-Only MEP.

public interface IDomainEventDispatcher : IDispatcher
Extension Methods

Methods

Raise(IDomainEvent)

Invokes any domain event handlers that is assigned to the specified event.

void Raise(IDomainEvent request)

Parameters

request IDomainEvent

The IDomainEvent to raise.

RaiseAsync(IDomainEvent, Action<AsyncOptions>)

Invokes any domain event handlers that is assigned to the specified event.

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