EntryAdded Method
EntryAdded(Action<IHReplicatedMap<TKey, TValue>, MapEntryAddedEventArgs<TKey, TValue>>)
Adds an handler which runs when a map entry is added.
Declaration
public ReplicatedMapEventHandlers<TKey, TValue> EntryAdded(Action<IHReplicatedMap<TKey, TValue>, MapEntryAddedEventArgs<TKey, TValue>> handler)
Parameters
Action<IHReplicatedMap<TKey, TValue>, MapEntryAddedEventArgs<TKey, TValue>> | handler | The handler. |
Returns
ReplicatedMapEventHandlers<TKey, TValue> | The handlers. |
EntryAdded(Func<IHReplicatedMap<TKey, TValue>, MapEntryAddedEventArgs<TKey, TValue>, ValueTask>)
Adds an handler which runs when a map entry is added.
Declaration
public ReplicatedMapEventHandlers<TKey, TValue> EntryAdded(Func<IHReplicatedMap<TKey, TValue>, MapEntryAddedEventArgs<TKey, TValue>, ValueTask> handler)
Parameters
Func<IHReplicatedMap<TKey, TValue>, MapEntryAddedEventArgs<TKey, TValue>, ValueTask> | handler | The handler. |
Returns
ReplicatedMapEventHandlers<TKey, TValue> | The handlers. |