ข้ามไปยังเนื้อหา

Class EventStreamConcurrencyException

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.EventSourcing
Assembly: Cephalon.Abstractions.dll

Represents an optimistic concurrency failure while appending events to a stream.

public sealed class EventStreamConcurrencyException : Exception, ISerializable

objectExceptionEventStreamConcurrencyException

ISerializable

Exception.GetBaseException(), Exception.GetType(), Exception.ToString(), Exception.Data, Exception.HelpLink, Exception.HResult, Exception.InnerException, Exception.Message, Exception.Source, Exception.StackTrace, Exception.TargetSite, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

EventStreamConcurrencyException(string, long, long)

Section titled “ EventStreamConcurrencyException(string, long, long)”

Initializes a new instance of the class.

public EventStreamConcurrencyException(string streamId, long expectedVersion, long actualVersion)

streamId string

The stream identifier that failed the concurrency check.

expectedVersion long

The version that the caller expected.

actualVersion long

The version that currently exists in the store.

Gets the version that currently exists in the store.

public long ActualVersion { get; }

long

Gets the version that the caller expected.

public long ExpectedVersion { get; }

long

Gets the stream identifier that failed the concurrency check.

public string StreamId { get; }

string