Table of Contents

Class DomainEventDispatcherExtensions

Namespace
Savvyio.Extensions.EFCore.Domain
Assembly
Savvyio.Extensions.EFCore.Domain.dll

Extension methods for the IDomainEventDispatcher interface.

public static class DomainEventDispatcherExtensions
Inheritance
DomainEventDispatcherExtensions

Methods

RaiseMany(IDomainEventDispatcher, DbContext)

Raises domain events from the specified context to handlers that implements the IDomainEventHandler interface.

public static void RaiseMany(this IDomainEventDispatcher dispatcher, DbContext context)

Parameters

dispatcher IDomainEventDispatcher

The IDomainEventDispatcher to extend.

context DbContext

The DbContext to extract aggregate(s) and publish domain events from.

RaiseManyAsync(IDomainEventDispatcher, DbContext, Action<AsyncOptions>)

Asynchronously raises domain events from the specified context to handlers that implements the IDomainEventHandler interface.

public static Task RaiseManyAsync(this IDomainEventDispatcher dispatcher, DbContext context, Action<AsyncOptions> setup = null)

Parameters

dispatcher IDomainEventDispatcher

The IDomainEventDispatcher to extend.

context DbContext

The DbContext to extract aggregate(s) and publish domain events from.

setup Action<AsyncOptions>

The AsyncOptions which may be configured.

Returns

Task

A Task that represents the asynchronous operation.