Class IntegrationEvent
- Namespace
- Savvyio.EventDriven
- Assembly
- Savvyio.EventDriven.dll
Provides a default implementation of of the IIntegrationEvent interface.
public abstract class IntegrationEvent : Request, IEquatable<Request>, IIntegrationEvent, IRequest, IMetadata, IEquatable<IntegrationEvent>
- Inheritance
-
ObjectIntegrationEvent
- Implements
-
IEquatable<Request>IEquatable<IntegrationEvent>
- Inherited Members
- Extension Methods
Constructors
IntegrationEvent(String, IMetadata)
Initializes a new instance of the IntegrationEvent class.
protected IntegrationEvent(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 IntegrationEvent.
Key | Initial Value |
---|---|
EventId | eventId ?? Guid.NewGuid().ToString("N") |
Timestamp | DateTime.UtcNow |