Table of Contents

Method Evaluate

Namespace
Scaleout.Client.MethodInvocation
Assembly
Scaleout.Client.dll

Evaluate(TKey, TParam, TResult, OperationContext<TKey, TValue>)

Abstract. When overridden in a derived class, evaluates an object in the cache. The accumulated result for the operation is passed into this method via the accumulator parameter, and the method should return a (possibly) modified accumulator value that will be passed to the next Evaluate call by the pipeline.

public abstract TResult Evaluate(TKey key, TParam param, TResult accumulator, OperationContext<TKey, TValue> context)

Parameters

key TKey

Key to the object being evaluated.

param TParam

Deserialized instance of the parameter object that was supplied to the client-side Invoke(string, byte[], string, TimeSpan?) call.

accumulator TResult

The thread-local accumulated result variable.

context OperationContext<TKey, TValue>

Context of the invoke operation, such as the cache being used and the operation's cancellation token.

Returns

TResult

The thread-local accumulated result variable, which will be passed to the next Evaluate call.