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, ISerializableInheritance
Section titled “Inheritance”object ← Exception ← EventStreamConcurrencyException
Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”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()
Constructors
Section titled “Constructors”EventStreamConcurrencyException(string, long, long)
Section titled “ EventStreamConcurrencyException(string, long, long)”Initializes a new instance of the
public EventStreamConcurrencyException(string streamId, long expectedVersion, long actualVersion)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”ActualVersion
Section titled “ ActualVersion”Gets the version that currently exists in the store.
public long ActualVersion { get; }Property Value
Section titled “Property Value”ExpectedVersion
Section titled “ ExpectedVersion”Gets the version that the caller expected.
public long ExpectedVersion { get; }Property Value
Section titled “Property Value”StreamId
Section titled “ StreamId”Gets the stream identifier that failed the concurrency check.
public string StreamId { get; }