NamedCacheQueryAsyncT Method (IQueryableT, CancellationToken)

ScaleOut Software NamedCache API
Asynchronously queries the cache for objects that match the Linq query query.

Namespace:  Soss.Client
Assembly:  soss_namedcache (in soss_namedcache.dll) Version: 6.2.0.0
Syntax

public Task<IEnumerable<T>> QueryAsync<T>(
	IQueryable<T> query,
	CancellationToken cancellationToken = null
)

Parameters

query
Type: System.LinqIQueryableT
an IQueryableT instance resulting from a QueryObjectsT or QueryKeysT Linq query.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
An optional CancellationToken that can be used to cancel the asynchronous operation.

Type Parameters

T

Return Value

Type: TaskIEnumerableT
IEnumerable collection of objects or CachedObjectIDs matching the query specification.
Exceptions

ExceptionCondition
StateServerExceptionThrown if ScaleOut StateServer is unavailable or has experienced an internal error.
Remarks

The specified query must be sourced via a QueryObjectsT or QueryKeysT request.
See Also

Reference