Table of Contents

Class ServiceEvents

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

Manages registration of callbacks to handle events from the ScaleOut service.

public static class ServiceEvents
Inheritance
ServiceEvents
Inherited Members

Methods

SetEraseObjectHandlerAsync<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, Task>)

[This method has been deprecated] Sets a callback method for handling erase-behind events. The object provided to the callback should be removed from a persistent backing store.

SetEraseObjectHandler<TKey, TValue>(Cache<TKey, TValue>, Action<TKey>)

Sets a callback method for handling erase-behind events. The object provided to the callback should be removed from a persistent backing store.

SetEraseObjectHandler<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, Task>)

Sets an async callback method for handling erase-behind events. The object provided to the callback should be removed from a persistent backing store.

SetExpirationHandlerAsync<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, ExpirationType, Task<ObjectDisposition>>)

[This method has been deprecated] Sets a callback method for handling expiration events and notifies the ScaleOut service that this client application is available to handle events for the supplied cache instance.

SetExpirationHandler<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, ExpirationType, ObjectDisposition>)

Sets a callback method for handling expiration events and notifies the ScaleOut service that this client application is available to handle events for the supplied cache instance.

SetExpirationHandler<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, ExpirationType, Task<ObjectDisposition>>)

Sets an async callback method for handling expiration events and notifies the ScaleOut service that this client application is available to handle events for the supplied cache instance.

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.

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.

SetLoadObjectHandlerAsync<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, Task<ValueFactoryResult<TValue>>>)

[This method has been deprecated] Sets a callback method for handling read-through or refresh-ahead events. The object returned from the callback is loaded into the ScaleOut service.

SetLoadObjectHandler<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, ValueFactoryResult<TValue>>)

Sets a callback method for handling read-through or refresh-ahead events. The object returned from the callback is loaded into the ScaleOut service.

SetLoadObjectHandler<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, Task<ValueFactoryResult<TValue>>>)

Sets an async callback method for handling read-through or refresh-ahead events. The object returned from the callback is loaded into the ScaleOut service.

SetPostedEventHandlerAsync<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, EventPayload, Task>)

[This method has been deprecated] Sets a callback method for handling posted events.

SetPostedEventHandler<TKey, TValue>(Cache<TKey, TValue>, Action<TKey, EventPayload>)

Sets a callback method for handling posted events.

SetPostedEventHandler<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, EventPayload, Task>)

Sets an async callback method for handling posted events.

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

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

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

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

SetStoreObjectHandlerAsync<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, TValue, Task>)

[This method has been deprecated] Sets a callback method for handling write-behind events. The object provided to the callback should be stored in a persistent backing store.

SetStoreObjectHandler<TKey, TValue>(Cache<TKey, TValue>, Action<TKey, TValue>)

Sets a callback method for handling write-behind events. The object provided to the callback should be stored in a persistent backing store.

SetStoreObjectHandler<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, TValue, Task>)

Sets an async callback method for handling write-behind events. The object provided to the callback should be stored in a persistent backing store.