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

Name Description
EventSequenceTokenV2()

Initializes a new instance of the EventSequenceTokenV2 class.

EventSequenceTokenV2(Int64, Int32)

Sequence token constructor

EventSequenceTokenV2(Int64)

Sequence token constructor

Properties

Name Description
EventIndex

Number of events in batch prior to this event

SequenceNumber

Number of event batches in stream prior to this event batch

Methods

Name Description
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

Name Description
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