Method SetPostedEventHandlerAsync
SetPostedEventHandlerAsync<TKey, TValue>(Cache<TKey, TValue>, Func<TKey, EventPayload, Task>)
[This method has been deprecated] Sets a callback method for handling posted events.
[Obsolete("Use synchronous SetPostedEventHandler instead.")]
public static Task SetPostedEventHandlerAsync<TKey, TValue>(Cache<TKey, TValue> cache, Func<TKey, EventPayload, Task> callback)
Parameters
cache
Cache<TKey, TValue>The cache that will push erase-behind events.
callback
Func<TKey, EventPayload, Task>Callback that removes the provided object from a backing store.
Returns
Type Parameters
TKey
TValue