TracedDomainEvent Constructor
Definition
- Namespace
- Savvyio.Domain.EventSourcing
- Assemblies
- Savvyio.Domain.EventSourcing.dll
TracedDomainEvent(string, IMetadata)
Initializes a new instance of the ITracedDomainEvent class.
protected TracedDomainEvent(string eventId = null, IMetadata metadata = null)
Parameters
eventIdstringThe optional identifier of the event. Default is an auto-generated UUID.
metadataIMetadataThe 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 |