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 record TracedDomainEvent : DomainEvent, IEquatable<Request>, IEquatable<DomainEvent>, ITracedDomainEvent, IDomainEvent, IRequest, IMetadata, IEquatable<TracedDomainEvent>- Inheritance
- 
      objectTracedDomainEvent
- Implements
- 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
- eventIdstring
- The optional identifier of the event. Default is an auto-generated UUID. 
- metadataIMetadata
- The 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 |