Table of Contents

RaiseMany Method

Definition

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

RaiseMany<T>(IDomainEventDispatcher, IAggregateRoot<T>)

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

public static void RaiseMany<T>(this IDomainEventDispatcher dispatcher, IAggregateRoot<T> aggregate) where T : IDomainEvent

Parameters

dispatcher IDomainEventDispatcher

The IDomainEventDispatcher to extend.

aggregate IAggregateRoot<T>

The aggregate to publish domain events from.

Type Parameters

T

The type that implements the IDomainEvent interface.