Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

StreamSequenceToken Class

Definition

Namespace:
Orleans.Streams
Assembly:
Orleans.dll
Assembly:
Orleans.Streaming.dll
Assembly:
Orleans.Core.Abstractions.dll
Package:
Microsoft.Orleans.Core v1.5.10
Package:
Microsoft.Orleans.Streaming v10.0.0
Package:
Microsoft.Orleans.Core.Abstractions v2.4.5
Package:
Microsoft.Orleans.Core.Abstractions v3.6.5
Package:
Microsoft.Orleans.Streaming v7.2.5
Package:
Microsoft.Orleans.Streaming v8.0.0
Package:
Microsoft.Orleans.Streaming v8.1.0
Package:
Microsoft.Orleans.Streaming v8.2.0
Package:
Microsoft.Orleans.Streaming v9.0.0
Package:
Microsoft.Orleans.Streaming v9.1.2
Source:
StreamSequenceToken.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Handle representing stream sequence number/token. Consumer may subscribe to the stream while specifying the start of the subscription sequence token. That means that the stream infrastructure will deliver stream events starting from this sequence token.

[System.Serializable]
public abstract class StreamSequenceToken : IComparable<Orleans.Streams.StreamSequenceToken>, IEquatable<Orleans.Streams.StreamSequenceToken>
[System.Serializable]
[Orleans.GenerateSerializer]
public abstract class StreamSequenceToken : IComparable<Orleans.Streams.StreamSequenceToken>, IEquatable<Orleans.Streams.StreamSequenceToken>
[<System.Serializable>]
type StreamSequenceToken = class
 interface IEquatable<StreamSequenceToken>
 interface IComparable<StreamSequenceToken>
[<System.Serializable>]
[<Orleans.GenerateSerializer>]
type StreamSequenceToken = class
 interface IEquatable<StreamSequenceToken>
 interface IComparable<StreamSequenceToken>
Public MustInherit Class StreamSequenceToken
Implements IComparable(Of StreamSequenceToken), IEquatable(Of StreamSequenceToken)
Inheritance
StreamSequenceToken
Derived
Attributes
Implements

Constructors

Name Description
StreamSequenceToken()

Properties

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

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

Equals(StreamSequenceToken)

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

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