Esempio n. 1
0
        public void PublishChatConnectionChanged(int channelId, ChatConnectionState state)
        {
            IFirehoseChatConnectionChanged l = m_chatConChangedListner;

            if (l != null)
            {
                l.OnChatConnectionChanged(channelId, state);
            }
        }
Esempio n. 2
0
        void OnChatConnectionChanged(int channelId, ChatConnectionState state)
        {
            // Inform creeper carl when chat connections change.
            m_creeperCarl.OnChatConnectionChanged(channelId, state);

            // Now inform the firehoses.
            foreach (Firehose h in m_firehoses)
            {
                h.PublishChatConnectionChanged(channelId, state);
            }
        }
Esempio n. 3
0
        public void OnChatConnectionChanged(int channelId, ChatConnectionState state)
        {
            if (state == ChatConnectionState.Connected)
            {
                m_channelTracker.TryAdd(channelId, 0);
            }
            else
            {
                int temp;
                m_channelTracker.TryRemove(channelId, out temp);

                // We will try to remove this channel for all users, this will only do something for users that are watching.
                foreach (var pair in m_userMap)
                {
                    RemoveUserFromChannel(pair.Key, channelId);
                }
            }
        }