Table of Contents

Method SetSingleObjectInvokeAsyncHandler

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

SetSingleObjectInvokeAsyncHandler<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, SingleObjectInvokeArgs, Task<byte[]>>)

Sets an async callback method for handling single object invoke events.

public static void SetSingleObjectInvokeAsyncHandler<TKey, TValue>(Cache<TKey, TValue> cache, Func<TKey, SingleObjectInvokeArgs, Task<byte[]>> asyncCallback)

Parameters

cache Cache<TKey, TValue>

The cache containing objects involved in the SingleObjectInvoke operations.

asyncCallback Func<TKey, SingleObjectInvokeArgs, Task<byte[]>>

Callback that handles the SingleObjectInvoke operation.

Type Parameters

TKey

The type of keys in the cache.

TValue

The type of values in the cache.