Executes a user-supplied predicate method to filter objects of type T in parallel via a StateServer InvocationGrid.
Namespace: Soss.Client
Assembly: soss_namedcache (in soss_namedcache.dll) Version: 6.2.0.0
Syntax
public static IQueryable<T> InvokeFilter<T, P>( this IQueryable<T> source, TimeSpan timeout, P param, Func<T, P, bool> predicate )
Parameters
- source
- Type: System.LinqIQueryableT
An IQueryable source of cached objects. - timeout
- Type: SystemTimeSpan
a timeout that limits how long the operation may run - param
- Type: P
A parameter object to pass to the user-supplied predicate. - predicate
- Type: SystemFuncT, P, Boolean
a boolean-valued function that returns True if the object of type T it receives should be returned in the query.
Type Parameters
- T
- The type of objects to be filtered
- P
- The type of an arbitrary SerializableAttribute parameter to pass to the user-supplied predicate.
Return Value
Type: IQueryableTReturns objects in the NamedCache for which any WhereTSource(IEnumerableTSource, FuncTSource, Boolean) clause evaluates to True within StateServer and also for which the predicate expression returns true will be returned.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Exceptions
Exception | Condition |
---|---|
NotSupportedException | when T is a CachedObjectIdT |
Remarks
See Also