EntryExpired Method
EntryExpired(Action<IHMap<TKey, TValue>, MapEntryExpiredEventArgs<TKey, TValue>>)
Adds an handler which runs when a map entry is expired.
Declaration
public MapEventHandlers<TKey, TValue> EntryExpired(Action<IHMap<TKey, TValue>, MapEntryExpiredEventArgs<TKey, TValue>> handler)
Parameters
Action<IHMap<TKey, TValue>, MapEntryExpiredEventArgs<TKey, TValue>> | handler | The handler. |
Returns
MapEventHandlers<TKey, TValue> | The handlers. |
EntryExpired(Func<IHMap<TKey, TValue>, MapEntryExpiredEventArgs<TKey, TValue>, ValueTask>)
Adds an handler which runs when a map entry is expired.
Declaration
public MapEventHandlers<TKey, TValue> EntryExpired(Func<IHMap<TKey, TValue>, MapEntryExpiredEventArgs<TKey, TValue>, ValueTask> handler)
Parameters
Func<IHMap<TKey, TValue>, MapEntryExpiredEventArgs<TKey, TValue>, ValueTask> | handler | The handler. |
Returns
MapEventHandlers<TKey, TValue> | The handlers. |