Edit

Share via


EventSequenceTokenV2 Class

Definition

Stream sequence token that tracks sequence number and event index

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

Constructors

EventSequenceTokenV2()

Initializes a new instance of the EventSequenceTokenV2 class.

EventSequenceTokenV2(Int64)

Initializes a new instance of the EventSequenceTokenV2 class.

EventSequenceTokenV2(Int64, Int32)

Initializes a new instance of the EventSequenceTokenV2 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