Table of Contents

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

SequenceNumber EventSequenceNumber

The expected sequence number.

EventSourceId EventSourceId

Optional EventSourceId to scope to. If not set, it will not be used.

EventStreamType EventStreamType

Optional EventStreamType to scope to. If not set, it will not be used.

EventStreamId EventStreamId

Optional EventStreamId to scope to. If not set, it will not be used.

EventSourceType EventSourceType

Optional EventSourceType to scope to. If not set, it will not be used.

EventTypes IEnumerable<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

ConcurrencyScope

NotSet

Represents a concurrency scope that has not been specified yet.

public static readonly ConcurrencyScope NotSet

Field Value

ConcurrencyScope

Properties

EventSourceId

Optional EventSourceId to scope to. If not set, it will not be used.

public EventSourceId? EventSourceId { get; init; }

Property Value

EventSourceId

EventSourceType

Optional EventSourceType to scope to. If not set, it will not be used.

public EventSourceType? EventSourceType { get; init; }

Property Value

EventSourceType

EventStreamId

Optional EventStreamId to scope to. If not set, it will not be used.

public EventStreamId? EventStreamId { get; init; }

Property Value

EventStreamId

EventStreamType

Optional EventStreamType to scope to. If not set, it will not be used.

public EventStreamType? EventStreamType { get; init; }

Property Value

EventStreamType

EventTypes

Optional collection of EventType to scope to. If not set, it will not be used.

public IEnumerable<EventType>? EventTypes { get; init; }

Property Value

IEnumerable<EventType>

SequenceNumber

The expected sequence number.

public EventSequenceNumber SequenceNumber { get; init; }

Property Value

EventSequenceNumber