public void RemoveHander(string key, QueueMessageDelegate <BoxMqttApplicationMessage> handler) { if (!_messageQueueDictionary.ContainsKey(key)) { return; } _messageQueueDictionary[key]._messageChangedHandler -= handler; }
public void AddHander(string key, QueueMessageDelegate <BoxMqttApplicationMessage> handler) { AddQueueMessageOfIsNull(key); _messageQueueDictionary[key]._messageChangedHandler += handler; }