Method Evaluate
- Namespace
- Scaleout.Client.MethodInvocation
- Assembly
- Scaleout.Client.dll
Evaluate(TKey, 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, TResult accumulator, OperationContext<TKey, TValue> context)
Parameters
key
TKeyKey to the object being evaluated.
accumulator
TResultThe 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.