SubscribeAsync Method
SubscribeAsync(Action<MultiMapEventHandlers<TKey, TValue>>, bool, 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. |
bool | 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, bool, 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. |
bool | includeValues | Whether to include values in event arguments. |
object | state | A state object. |
Returns
Task<Guid> | The unique identifier of the subscription. |