internal void OnChatStarted(ChatInfo chatInfo) { SearchRequests.Pop(); ActiveChats.Add(chatInfo); ChatStarted?.Invoke(this, new ChatEventArgs(ChatState.Started, chatInfo)); }
private void SetUpDisconnectedState() { ConnectionInfo = null; ActiveChats.Clear(); SessionID = null; while (SearchRequests.Count > 1) { SearchRequests.Pop(); } _clientEventId = 1; KeepAliveTimer.Stop(); }