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. |