/// <summary> /// Obtain a list of the receivers of the event raise. /// </summary> /// <param name="specific">True to get the specific for this one, false to get the "subscribe to all"</param> public HotSwapDictionary <ClientId, ClientEventSubscriptionInfo> GetReceivers(ClientId sourceId, bool specific) { HotSwapDictionary <ClientId, ClientEventSubscriptionInfo> result; if (specific) { if (_subscriptionsHotSwap.TryGetValue(sourceId, out result) == false) {// If not found, return an empty one. result = new HotSwapDictionary <ClientId, ClientEventSubscriptionInfo>(); } } else { if (_subscriptionsHotSwap.TryGetValue(SubscribeToAllId, out result) == false) {// If not found, return an empty one. result = new HotSwapDictionary <ClientId, ClientEventSubscriptionInfo>(); } } return(result); }
/// <summary> /// Constructor. /// </summary> internal ClientEventSubscriptionInfo() { Data = new HotSwapDictionary<MethodInfo,int>(); }
/// <summary> /// Obtain a list of the receivers of the event raise. /// </summary> /// <param name="specific">True to get the specific for this one, false to get the "subscribe to all"</param> public HotSwapDictionary<ClientId, ClientEventSubscriptionInfo> GetReceivers(ClientId sourceId, bool specific) { HotSwapDictionary<ClientId, ClientEventSubscriptionInfo> result; if (specific) { if (_subscriptionsHotSwap.TryGetValue(sourceId, out result) == false) {// If not found, return an empty one. result = new HotSwapDictionary<ClientId, ClientEventSubscriptionInfo>(); } } else { if (_subscriptionsHotSwap.TryGetValue(SubscribeToAllId, out result) == false) {// If not found, return an empty one. result = new HotSwapDictionary<ClientId, ClientEventSubscriptionInfo>(); } } return result; }
/// <summary> /// Constructor. /// </summary> internal ClientEventSubscriptionInfo() { Data = new HotSwapDictionary <MethodInfo, int>(); }