Table of Contents

RaiseManyAsync Method

Definition

Namespace
Savvyio.Domain
Assemblies
Savvyio.Domain.dll
Source
src/Savvyio.Domain/DomainEventDispatcherExtensions.cs

RaiseManyAsync<T>(IDomainEventDispatcher, IAggregateRoot<T>, Action<AsyncOptions>)

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

public static Task RaiseManyAsync<T>(this IDomainEventDispatcher dispatcher, IAggregateRoot<T> aggregate, Action<AsyncOptions> setup = null) where T : IDomainEvent

Parameters

dispatcher IDomainEventDispatcher

The IDomainEventDispatcher to extend.

aggregate IAggregateRoot<T>

The aggregate to publish domain events from.

setup Action<AsyncOptions>

The AsyncOptions which may be configured.

Returns

Task

A Task that represents the asynchronous operation.

Type Parameters

T

The type that implements the IDomainEvent interface.