QueryableExtensionsInvokeT, P Method (IQueryableT, TimeSpan, P, ActionT, P, EvalArgs)

ScaleOut Software NamedCache API
Invokes a user-supplied evalMethod in a parallel distributed fashion for each object in the sequence source.

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

public static void Invoke<T, P>(
	this IQueryable<T> source,
	TimeSpan timeout,
	P param,
	Action<T, P, EvalArgs> evalMethod


Type: System.LinqIQueryableT
The sequence of objects to be passed to evalMethod on the distributed servers. The source should be initially created by QueryKeysT or QueryObjectsT.
Type: SystemTimeSpan
The length of time allowed for the invoke operation. If the operation takes longer than timeout it will be cancelled.
Type: P
A user-specified parameter object sent to each evalMethod when it is invoked.
Type: SystemActionT, P, EvalArgs
A method to be run on each element of source. The evalMethod used with this signature expects an EvalArgs parameter so that the evalMethod can control the disposition of each object and access the target object's key. The evalMethod used with this signature does not have a return value; no follow-on Merge method is required.

Type Parameters

The Type of the "target" objects that will be passed to the evalMethod.
The Type of a fixed parameter object that will also be passed to evalMethod at each invocation.

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).
See Also


Other Resources