Class ConcurrencyScope
- Namespace
- Cratis.Chronicle.EventSequences.Concurrency
- Assembly
- Cratis.Chronicle.dll
Represents a concurrency scope for an event sequence append operation.
public record ConcurrencyScope : IEquatable<ConcurrencyScope>
- Inheritance
-
ConcurrencyScope
- Implements
- Inherited Members
Constructors
ConcurrencyScope(EventSequenceNumber, EventSourceId?, EventStreamType?, EventStreamId?, EventSourceType?, IEnumerable<EventType>?)
Represents a concurrency scope for an event sequence append operation.
public ConcurrencyScope(EventSequenceNumber SequenceNumber, EventSourceId? EventSourceId = null, EventStreamType? EventStreamType = null, EventStreamId? EventStreamId = null, EventSourceType? EventSourceType = null, IEnumerable<EventType>? EventTypes = null)
Parameters
SequenceNumberEventSequenceNumberThe expected sequence number.
EventSourceIdEventSourceIdOptional EventSourceId to scope to. If not set, it will not be used.
EventStreamTypeEventStreamTypeOptional EventStreamType to scope to. If not set, it will not be used.
EventStreamIdEventStreamIdOptional EventStreamId to scope to. If not set, it will not be used.
EventSourceTypeEventSourceTypeOptional EventSourceType to scope to. If not set, it will not be used.
EventTypesIEnumerable<EventType>Optional collection of EventType to scope to. If not set, it will not be used.
Fields
None
Represents a concurrency scope that does not apply any constraints.
public static readonly ConcurrencyScope None
Field Value
NotSet
Represents a concurrency scope that has not been specified yet.
public static readonly ConcurrencyScope NotSet
Field Value
Properties
EventSourceId
Optional EventSourceId to scope to. If not set, it will not be used.
public EventSourceId? EventSourceId { get; init; }
Property Value
EventSourceType
Optional EventSourceType to scope to. If not set, it will not be used.
public EventSourceType? EventSourceType { get; init; }
Property Value
EventStreamId
Optional EventStreamId to scope to. If not set, it will not be used.
public EventStreamId? EventStreamId { get; init; }
Property Value
EventStreamType
Optional EventStreamType to scope to. If not set, it will not be used.
public EventStreamType? EventStreamType { get; init; }
Property Value
EventTypes
Optional collection of EventType to scope to. If not set, it will not be used.
public IEnumerable<EventType>? EventTypes { get; init; }
Property Value
SequenceNumber
The expected sequence number.
public EventSequenceNumber SequenceNumber { get; init; }