Class AppendOperation
- Namespace
- Cratis.Chronicle.EventSequences.Operations
- Assembly
- Cratis.Chronicle.dll
Represents an operation to append an event to an event sequence.
public record AppendOperation : IEventSequenceOperation, IEquatable<AppendOperation>
- Inheritance
-
AppendOperation
- Implements
- Inherited Members
Constructors
AppendOperation(object, Causation?, EventStreamType?, EventStreamId?, EventSourceType?)
Represents an operation to append an event to an event sequence.
public AppendOperation(object Event, Causation? Causation = null, EventStreamType? EventStreamType = null, EventStreamId? EventStreamId = null, EventSourceType? EventSourceType = null)
Parameters
EventobjectThe event to append.
CausationCausationOptional The causation for the event.
EventStreamTypeEventStreamTypeOptional The type of event stream.
EventStreamIdEventStreamIdOptional The identifier for the event stream.
EventSourceTypeEventSourceTypeOptional The type of event source.
Properties
Causation
Optional The causation for the event.
public Causation? Causation { get; init; }
Property Value
Event
The event to append.
public object Event { get; init; }
Property Value
EventSourceType
Optional The type of event source.
public EventSourceType? EventSourceType { get; init; }
Property Value
EventStreamId
Optional The identifier for the event stream.
public EventStreamId? EventStreamId { get; init; }
Property Value
EventStreamType
Optional The type of event stream.
public EventStreamType? EventStreamType { get; init; }