SubscribeAsync Method
SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, object)
Subscribes to events.
Declaration
Task<Guid> SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>> events, object state = null)
Parameters
Action<ReplicatedMapEventHandlers<TKey, TValue>> | events | An event handlers collection builder. |
object | state | A state object. |
Returns
Task<Guid> | The unique identifier of the subscription. |
SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, TKey, object)
Subscribes to events.
Declaration
Task<Guid> SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>> events, TKey key, object state = null)
Parameters
Action<ReplicatedMapEventHandlers<TKey, TValue>> | events | An event handlers collection builder. |
TKey | key | A key to filter events. |
object | state | A state object. |
Returns
Task<Guid> | The unique identifier of the subscription. |
SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, IPredicate, object)
Subscribes to events.
Declaration
Task<Guid> SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>> events, IPredicate predicate, object state = null)
Parameters
Action<ReplicatedMapEventHandlers<TKey, TValue>> | events | An event handlers collection builder. |
IPredicate | predicate | A predicate to filter events. |
object | state | A state object. |
Returns
Task<Guid> | The unique identifier of the subscription. |
SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, TKey, IPredicate, object)
Subscribes to events.
Declaration
Task<Guid> SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>> events, TKey key, IPredicate predicate, object state = null)
Parameters
Action<ReplicatedMapEventHandlers<TKey, TValue>> | events | An event handlers collection builder. |
TKey | key | A key to filter events. |
IPredicate | predicate | A predicate to filter events. |
object | state | A state object. |
Returns
Task<Guid> | The unique identifier of the subscription. |