Table of Contents

DomainEvent Constructor

Definition

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

DomainEvent(string, IMetadata)

Initializes a new instance of the DomainEvent class.

protected DomainEvent(string eventId = null, IMetadata metadata = null)

Parameters

eventId string

The optional identifier of the event. Default is an auto-generated UUID.

metadata IMetadata

The optional metadata to merge with this instance.

Remarks

The following table shows the initial metadata values for an instance of DomainEvent.

KeyInitial Value
EventIdeventId ?? Guid.NewGuid().ToString("N")
TimestampDateTime.UtcNow