Skip to content

QueueCacheCursorResult<TCursor> Methods

Represents the result of acquiring a queue cache cursor.

Equals(QueueCacheCursorResult<TCursor>)

View source
public bool Equals(QueueCacheCursorResult<TCursor> other)
Indicates whether the current object is equal to another object of the same type.

Parameters

otherQueueCacheCursorResult<TCursor>
An object to compare with this object.

Returns

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

override
View source
public override bool Equals(object? obj)
Indicates whether this instance and a specified object are equal.

Parameters

objobject?
The object to compare with the current instance.

Returns

true if obj and this instance are the same type and represent the same value; otherwise, false.

FromCacheMiss(QueueCacheMissInfo)

static
View source
public static QueueCacheCursorResult<TCursor> FromCacheMiss(QueueCacheMissInfo cacheMiss)
Creates a cache miss result.

Parameters

cacheMissQueueCacheMissInfo
The cache miss details.

Returns

A cache miss result.

FromCursor(TCursor)

static
View source
public static QueueCacheCursorResult<TCursor> FromCursor(TCursor cursor)
Creates a successful result.

Parameters

cursorTCursor
The acquired cursor.

Returns

A successful cursor result.

Exceptions

System.ArgumentNullException
cursor is null.

GetHashCode

override
View source
public override int GetHashCode()
Returns the hash code for this instance.

Returns

A 32-bit signed integer that is the hash code for this instance.