Table of Contents

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

EventSourceId EventSourceId

EventSourceId the event is for.

Event object

The actual event.

Causation Causation

The causation for the event.

Properties

Causation

The causation for the event.

public Causation Causation { get; init; }

Property Value

Causation

Event

The actual event.

public object Event { get; init; }

Property Value

object

EventSourceId

EventSourceId the event is for.

public EventSourceId EventSourceId { get; init; }

Property Value

EventSourceId

EventSourceType

Gets or inits the EventSourceType for the event. Defaults to Default.

public EventSourceType EventSourceType { get; init; }

Property Value

EventSourceType

EventStreamId

Gets or inits the EventStreamId for the event. Defaults to Default.

public EventStreamId EventStreamId { get; init; }

Property Value

EventStreamId

EventStreamType

Gets or inits the EventStreamType for the event. Defaults to All.

public EventStreamType EventStreamType { get; init; }

Property Value

EventStreamType

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; }

Property Value

DateTimeOffset?