SubscribeAsync Method
SubscribeAsync(Action<MultiMapEventHandlers<TKey, TValue>>, Boolean, Object)
Subscribes to events.
Declaration
Task<Guid> SubscribeAsync(Action<MultiMapEventHandlers<TKey, TValue>> events, bool includeValues = true, object state = null)
Parameters
Action<MultiMapEventHandlers<TKey, TValue>> | events | An event handlers collection builder. |
Boolean | includeValues | Whether to include values in event arguments. |
Object | state | A state object. |
Returns
Task<Guid> | The unique identifier of the subscription. |
SubscribeAsync(Action<MultiMapEventHandlers<TKey, TValue>>, TKey, Boolean, Object)
Subscribes to events.
Declaration
Task<Guid> SubscribeAsync(Action<MultiMapEventHandlers<TKey, TValue>> events, TKey key, bool includeValues = true, object state = null)
Parameters
Action<MultiMapEventHandlers<TKey, TValue>> | events | An event handlers collection builder. |
TKey | key | A key to filter events. |
Boolean | includeValues | Whether to include values in event arguments. |
Object | state | A state object. |
Returns
Task<Guid> | The unique identifier of the subscription. |