Table of Contents

Class DomainEventHandler

Namespace
Savvyio.Domain
Assembly
Savvyio.Domain.dll

Provides a generic and consistent way of handling Domain Event (as specified in Domain Driven Design) objects that implements the IDomainEvent interface. This is an abstract class.

public abstract class DomainEventHandler : IDomainEventHandler, IFireForgetHandler<IDomainEvent>, IHandler<IDomainEvent>, IHandler
Inheritance
Object
DomainEventHandler
Implements

Constructors

DomainEventHandler()

Initializes a new instance of the DomainEventHandler class.

protected DomainEventHandler()

Properties

Delegates

Gets the activator responsible of invoking delegates that handles IDomainEvent.

public IFireForgetActivator<IDomainEvent> Delegates { get; }

Property Value

IFireForgetActivator<IDomainEvent>

The activator responsible of invoking delegates that handles IDomainEvent.

Methods

RegisterDelegates(IFireForgetRegistry<IDomainEvent>)

Registers the delegates responsible of handling types that implements the IDomainEvent interface.

protected abstract void RegisterDelegates(IFireForgetRegistry<IDomainEvent> handlers)

Parameters

handlers IFireForgetRegistry<IDomainEvent>

The registry that store the delegates of type IDomainEvent.

See Also