Table of Contents

Class TracedDomainEvent

Namespace
Savvyio.Domain.EventSourcing
Assembly
Savvyio.Domain.EventSourcing.dll

Provides a default implementation of something that happened in the domain that you want other parts of the same domain (in-process/inner-application) to be aware of.

public abstract class TracedDomainEvent : DomainEvent, IEquatable<Request>, IEquatable<DomainEvent>, ITracedDomainEvent, IDomainEvent, IRequest, IMetadata, IEquatable<TracedDomainEvent>
Inheritance
Object
TracedDomainEvent
Implements
IEquatable<Request>
IEquatable<DomainEvent>
IEquatable<TracedDomainEvent>
Inherited Members
Extension Methods

Constructors

TracedDomainEvent(String, IMetadata)

Initializes a new instance of the ITracedDomainEvent class.

protected TracedDomainEvent(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 TracedDomainEvent.

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

See Also