Table of Contents

Method SetInvokeHandler

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

SetInvokeHandler<TKey, TValue>(Cache<TKey, TValue>, string, InvokeHandler<TKey, TValue>)

Sets a callback handler class to handle parallel method invocation operations for a cache. Multiple Invoke handlers can be registered for a cache so long as each has a unique operationId.

public static void SetInvokeHandler<TKey, TValue>(Cache<TKey, TValue> cache, string operationId, InvokeHandler<TKey, TValue> handler)

Parameters

cache Cache<TKey, TValue>

The cache containing objects involved in the Invoke operations.

operationId string

String identifier of this operation handler. Corresponds to an operation ID passed by the client to a Invoke(string, byte[], string, TimeSpan?) call.

handler InvokeHandler<TKey, TValue>

Invocation handler derived from ForEach<TKey, TValue>, ForEachWithParam<TKey, TValue, TParam>, Reduce<TKey, TValue, TResult>, or ReduceWithParam<TKey, TValue, TParam, TResult>

Type Parameters

TKey

The type of keys in the cache.

TValue

The type of values in the cache.

See Also

SetInvokeHandler<TKey, TValue>(Cache<TKey, TValue>, InvokeHandler<TKey, TValue>)

Sets a callback handler class to handle parallel method invocation operations for a cache. Clients use the handler's class name as the operation ID (the simple name of the class, not the fully qualified name) to invoke the specified handler.

public static void SetInvokeHandler<TKey, TValue>(Cache<TKey, TValue> cache, InvokeHandler<TKey, TValue> handler)

Parameters

cache Cache<TKey, TValue>

The cache containing objects involved in the Invoke operations.

handler InvokeHandler<TKey, TValue>

Invocation handler derived from ForEach<TKey, TValue>, ForEachWithParam<TKey, TValue, TParam>, Reduce<TKey, TValue, TResult>, or ReduceWithParam<TKey, TValue, TParam, TResult>

Type Parameters

TKey

The type of keys in the cache.

TValue

The type of values in the cache.

See Also