예제 #1
0
            public ClientQueue(Guid id, ParticipantModel participant)
            {
                m_Participant  = participant;
                m_IsPublicNode = false;
                m_Participant.Changed["Role"].Add(new PropertyEventHandler(OnRoleChanged));
                using (Synchronizer.Lock(m_Participant.SyncRoot)) {
                    if (m_Participant.Groups.Contains(Group.AllPublic))
                    {
                        m_IsPublicNode = true;
                    }
                }

                this.m_Id              = id;
                this.m_List            = new LinkedList <SendParameters>();
                this.m_SlideQueues     = new Hashtable();
                this.m_ReconnectBuffer = new ReconnectBuffer();
            }
예제 #2
0
            public ClientQueue(Guid id, ParticipantModel participant)
            {
                m_Participant = participant;
                m_IsPublicNode = false;
                m_Participant.Changed["Role"].Add(new PropertyEventHandler(OnRoleChanged));
                using (Synchronizer.Lock(m_Participant.SyncRoot)) {
                    if (m_Participant.Groups.Contains(Group.AllPublic)) {
                        m_IsPublicNode = true;
                    }
                }

                this.m_Id = id;
                this.m_List = new LinkedList<SendParameters>();
                this.m_SlideQueues = new Hashtable();
                this.m_ReconnectBuffer = new ReconnectBuffer();
            }