Skip to content

EventSequenceToken

class

Namespace: Orleans.Providers.Streams.Common

Stream sequence token that tracks sequence number and event index
[Orleans.GenerateSerializer]
public class EventSequenceToken : StreamSequenceToken

Remarks

EventSequenceToken and EventSequenceTokenV2 share a numeric position contract. Derived tokens are isolated by default and can explicitly join that contract through EventSequenceToken. This includes exact base tokens persisted by earlier event-token factories.

Constructors

Properties

  • EventIndex Gets the number of events in batch prior to this event
  • SequenceNumber Gets the number of event batches in stream prior to this event batch
  • SequenceTokenCompatibilityDomain Gets the compatibility domain used to determine which event sequence tokens share this token's numeric equality and ordering contract.

Methods

  • CompareTo(StreamSequenceToken?)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
  • CreateSequenceTokenForEvent(int) Creates a sequence token for a specific event in the current batch.
  • Equals(StreamSequenceToken?)Indicates whether the current object is equal to another object of the same type.
  • Equals(object?)Determines whether the specified object is equal to the current object.
  • GetHashCodeServes as the default hash function.
  • ToStringReturns a string that represents the current object.