Class EventForEventSourceId
- Namespace
- Cratis.Chronicle.EventSequences
- Assembly
- Cratis.Chronicle.dll
Represents an event and the EventSourceId it is for.
public record EventForEventSourceId : IEquatable<EventForEventSourceId>
- Inheritance
-
EventForEventSourceId
- Implements
- Inherited Members
Constructors
EventForEventSourceId(EventSourceId, object, Causation)
Represents an event and the EventSourceId it is for.
public EventForEventSourceId(EventSourceId EventSourceId, object Event, Causation Causation)
Parameters
EventSourceIdEventSourceIdEventSourceId the event is for.
EventobjectThe actual event.
CausationCausationThe causation for the event.
Properties
Causation
The causation for the event.
public Causation Causation { get; init; }
Property Value
Event
The actual event.
public object Event { get; init; }
Property Value
EventSourceId
EventSourceId the event is for.
public EventSourceId EventSourceId { get; init; }
Property Value
EventSourceType
Gets or inits the EventSourceType for the event. Defaults to Default.
public EventSourceType EventSourceType { get; init; }
Property Value
EventStreamId
Gets or inits the EventStreamId for the event. Defaults to Default.
public EventStreamId EventStreamId { get; init; }
Property Value
EventStreamType
Gets or inits the EventStreamType for the event. Defaults to All.
public EventStreamType EventStreamType { get; init; }
Property Value
Occurred
Gets or inits the optional occurred time. If not set, the server will set it to approximately the time of append.
public DateTimeOffset? Occurred { get; init; }