Esempio n. 1
0
        internal void OnChatStarted(ChatInfo chatInfo)
        {
            SearchRequests.Pop();
            ActiveChats.Add(chatInfo);

            ChatStarted?.Invoke(this, new ChatEventArgs(ChatState.Started, chatInfo));
        }
Esempio n. 2
0
        private void SetUpDisconnectedState()
        {
            ConnectionInfo = null;
            ActiveChats.Clear();
            SessionID = null;

            while (SearchRequests.Count > 1)
            {
                SearchRequests.Pop();
            }

            _clientEventId = 1;

            KeepAliveTimer.Stop();
        }