Example #1
0
        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);
        }
Example #2
0
        public void UnsubscribeObjectUnpublish(Type type, Channel.ObjectHandler handler)
        {
            if (!this.objUnPub.ContainsKey(type))
            {
                return;
            }

            this.objUnPub[type].Remove(handler);
        }
Example #3
0
        public void UnsubscribeObjectIdUnpublish(string id, Channel.ObjectHandler handler)
        {
            if (!this.objUnPubId.ContainsKey(id))
            {
                return;
            }

            this.objUnPubId[id].Remove(handler);
        }
Example #4
0
        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);
        }