Edit

Share via


EventSequenceToken Class

Definition

Stream sequence token that tracks sequence number and event index

[System.Serializable]
public class EventSequenceToken : Orleans.Streams.StreamSequenceToken
[System.Serializable]
[Orleans.GenerateSerializer]
public class EventSequenceToken : Orleans.Streams.StreamSequenceToken
[<System.Serializable>]
type EventSequenceToken = class
    inherit StreamSequenceToken
[<System.Serializable>]
[<Orleans.GenerateSerializer>]
type EventSequenceToken = class
    inherit StreamSequenceToken
Public Class EventSequenceToken
Inherits StreamSequenceToken
Inheritance
EventSequenceToken
Derived
Attributes

Constructors

EventSequenceToken()

Initializes a new instance of the EventSequenceToken class.

EventSequenceToken(Int64, Int32)

Initializes a new instance of the EventSequenceToken class.

EventSequenceToken(Int64)

Initializes a new instance of the EventSequenceToken class.

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

Methods

CompareTo(StreamSequenceToken)

Compares the current object with another object of the same type.

CreateSequenceTokenForEvent(Int32)

Creates a sequence token for a specific event in the current batch.

Equals(Object)

Determines whether the specified object is equal to the current object.

Equals(StreamSequenceToken)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

GetHashCode method for current EventSequenceToken

ToString()

ToString method

Extension Methods

Newer(StreamSequenceToken, StreamSequenceToken)

Returns true if the first token is newer than the second token.

Older(StreamSequenceToken, StreamSequenceToken)

Returns true if the first token is older than the second token.

Applies to