コード例 #1
0
        public void DisableAgent(Guid id)
        {
            var agent = _agentDataModel.Get(id);

            foreach (var chatQueueID in agent.ActiveChats)
            {
                var chat = _queueDataModel.Get(chatQueueID);

                if (chat != null)
                {
                    chat.CurrentAgent = null;
                    _chatHub.NotifyAgentDisconnect(chat.ClientID.ToString());
                }
            }
        }