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
-
ObjectTracedDomainEvent
- 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
StringThe optional identifier of the event. Default is an auto-generated UUID.
metadata
IMetadataThe optional metadata to merge with this instance.
Remarks
The following table shows the initial metadata values for an instance of TracedDomainEvent.
Key | Initial Value |
---|---|
EventId | eventId ?? Guid.NewGuid().ToString("N") |
Timestamp | DateTime.UtcNow |