Table of Contents

AddDomainEventHandler Method

Definition

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

AddDomainEventHandler<TImplementation>(SavvyioOptions)

Adds an implementation of the IDomainEventHandler interface to HandlerImplementationTypes (if not already registered).

public static SavvyioOptions AddDomainEventHandler<TImplementation>(this SavvyioOptions options) where TImplementation : class, IDomainEventHandler

Parameters

options SavvyioOptions

The SavvyioOptions to extend.

Returns

SavvyioOptions

A reference to options so that additional configuration calls can be chained.

Type Parameters

TImplementation

The type that implements the IDomainEventHandler interface.