public void SubscribeObjectPublish(Type type, Channel.ObjectHandler handler) { if (!this.objPub.ContainsKey(type)) { this.objPub[type] = new List <Channel.ObjectHandler>(); } this.objPub[type].Add(handler); }
public void UnsubscribeObjectUnpublish(Type type, Channel.ObjectHandler handler) { if (!this.objUnPub.ContainsKey(type)) { return; } this.objUnPub[type].Remove(handler); }
public void UnsubscribeObjectIdUnpublish(string id, Channel.ObjectHandler handler) { if (!this.objUnPubId.ContainsKey(id)) { return; } this.objUnPubId[id].Remove(handler); }
public void SubscribeObjectIdUnpublish(string id, Channel.ObjectHandler handler) { if (!this.objUnPubId.ContainsKey(id)) { this.objUnPubId[id] = new List <Channel.ObjectHandler>(); } this.objUnPubId[id].Add(handler); }