Struct VersionToken
An identifier for a specific version of an object held in the ScaleOut service. Version tokens can be used for optimistic updates via the UpdateOptimisticAsync(TKey, TValue, VersionToken, UpdatePolicy, IEnumerable<string>, CancellationToken) method.
public struct VersionToken : IEquatable<VersionToken>
- Implements
- Inherited Members
Remarks
In addition to optimistic updates, the version token is also used internally by the library to maintain the consistency of the in-process client cache.
Constructors
- VersionToken(int)
Constructor. For internal use only (public to allow testing of custom client cache implementations).
Fields
- Empty
Provides an empty VersionToken that indicates that no version value is available. This field is read-only.
Properties
- IsEmpty
Gets whether this VersionToken is empty.
Methods
- Equals(VersionToken)
Indicates whether this version token is equal to another token.
- Equals(object)
Indicates whether this version token is equal to another object.
- GetHashCode()
Returns a hash value for this token.
- ToString()
Converts a version token to a string representation.
Operators
- operator ==(VersionToken, VersionToken)
Returns a value that indicates whether two VersionToken values are equal.
- implicit operator uint(VersionToken)
Defines an implicit conversion of a version token to an unsigned integer.
- operator !=(VersionToken, VersionToken)
Returns a value that indicates whether two VersionToken values are different.