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: TaskIEnumerableTIEnumerable collection of objects or CachedObjectIDs matching the query specification.
Exceptions
Exception | Condition |
---|---|
StateServerException | Thrown if ScaleOut StateServer is unavailable or has experienced an internal error. |
Remarks
See Also