QueryableExtensionsInvokeFilterT, P Method

ScaleOut Software NamedCache API
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:

public static IQueryable<T> InvokeFilter<T, P>(
	this IQueryable<T> source,
	TimeSpan timeout,
	P param,
	Func<T, P, bool> predicate


Type: System.LinqIQueryableT
An IQueryable source of cached objects.
Type: SystemTimeSpan
a timeout that limits how long the operation may run
Type: P
A parameter object to pass to the user-supplied 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

The type of objects to be filtered
The type of an arbitrary SerializableAttribute parameter to pass to the user-supplied predicate.

Return Value

Type: IQueryableT
Returns 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).


This method can be used in conjunction with StateServer Linq filtering: Specify filter criteria for properties annotated with SossIndexAttribute in a Linq "where" clause. Further filter the result in parallel via an InvocationGrid using this extension method.
See Also