Class AppendOperation
- 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
- Extension Methods
Constructors
AppendOperation(AppendOperation)
protected AppendOperation(AppendOperation original)
Parameters
originalAppendOperation
AppendOperation(object, Causation?, EventStreamType?, EventStreamId?, EventSourceType?, IEnumerable<string>?, DateTimeOffset?, Subject?)
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, IEnumerable<string>? Tags = null, DateTimeOffset? Occurred = null, Subject? Subject = 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.
TagsIEnumerable<string>Optional dynamic tags to associate with the event.
OccurredDateTimeOffset?Optional timestamp for when the event occurred.
SubjectSubjectOptional subject identifying what the event is about.
Properties
Causation
Optional The causation for the event.
public Causation? Causation { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
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; }
Property Value
NamedTags
Gets or inits the structured named tags for this event.
public IEnumerable<NamedTag> NamedTags { get; init; }
Property Value
Exceptions
- InvalidNamedTag
The collection contains a null named tag.
Occurred
Optional timestamp for when the event occurred.
public DateTimeOffset? Occurred { get; init; }
Property Value
Subject
Optional subject identifying what the event is about.
public Subject? Subject { get; init; }
Property Value
Tags
Optional dynamic tags to associate with the event.
public IEnumerable<string>? Tags { get; init; }
Property Value
Methods
Deconstruct(out object, out Causation?, out EventStreamType?, out EventStreamId?, out EventSourceType?, out IEnumerable<string>?, out DateTimeOffset?, out Subject?)
public void Deconstruct(out object Event, out Causation? Causation, out EventStreamType? EventStreamType, out EventStreamId? EventStreamId, out EventSourceType? EventSourceType, out IEnumerable<string>? Tags, out DateTimeOffset? Occurred, out Subject? Subject)
Parameters
EventobjectCausationCausationEventStreamTypeEventStreamTypeEventStreamIdEventStreamIdEventSourceTypeEventSourceTypeTagsIEnumerable<string>OccurredDateTimeOffset?SubjectSubject
Equals(AppendOperation?)
public virtual bool Equals(AppendOperation? other)
Parameters
otherAppendOperation
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(AppendOperation?, AppendOperation?)
public static bool operator ==(AppendOperation? left, AppendOperation? right)
Parameters
leftAppendOperationrightAppendOperation
Returns
operator !=(AppendOperation?, AppendOperation?)
public static bool operator !=(AppendOperation? left, AppendOperation? right)
Parameters
leftAppendOperationrightAppendOperation