Class AppendedEvent
Represents an event that has been appended to an event log.
public record AppendedEvent : IEquatable<AppendedEvent>
- Inheritance
-
AppendedEvent
- Implements
- Inherited Members
Constructors
AppendedEvent(EventContext, object)
Represents an event that has been appended to an event log.
public AppendedEvent(EventContext Context, object Content)
Parameters
ContextEventContextThe EventContext.
ContentobjectThe content as a deserialized object.
Properties
Content
The content as a deserialized object.
public object Content { get; init; }
Property Value
Context
The EventContext.
public EventContext Context { get; init; }
Property Value
Methods
EmptyWithContent(object)
Represents an empty AppendedEvent with a specific event type.
public static AppendedEvent EmptyWithContent(object content)
Parameters
contentobjectThe content for the event.
Returns
- AppendedEvent
An empty AppendedEvent with a specific event type.
EmptyWithEventSequenceNumber(EventSequenceNumber)
Represents an empty AppendedEvent with a specific event sequence number.
public static AppendedEvent EmptyWithEventSequenceNumber(EventSequenceNumber eventSequenceNumber)
Parameters
eventSequenceNumberEventSequenceNumberEvent sequence number it should hold.
Returns
- AppendedEvent
An empty AppendedEvent with a specific event sequence number.
EmptyWithEventType(EventType)
Represents an empty AppendedEvent with a specific event type.
public static AppendedEvent EmptyWithEventType(EventType eventType)
Parameters
eventTypeEventTypeType of event it should be.
Returns
- AppendedEvent
An empty AppendedEvent with a specific event type.
EmptyWithEventTypeAndEventSequenceNumber(EventType, EventSequenceNumber)
Represents an empty AppendedEvent with a specific event type.
public static AppendedEvent EmptyWithEventTypeAndEventSequenceNumber(EventType eventType, EventSequenceNumber eventSequenceNumber)
Parameters
eventTypeEventTypeType of event it should be.
eventSequenceNumberEventSequenceNumberEvent sequence number it should hold.
Returns
- AppendedEvent
An empty AppendedEvent with a specific event type.