示例#1
0
        private void LeaveMatchmakingQueueMessage(MatchmakingLeaveQueueMessage obj)
        {
            lock (_queueLock)
            {
                try
                {
					Log.InfoFormat("User left matchmaking {0}",obj.From);
                    var queue = Queue.FirstOrDefault(x => x.QueueId == obj.QueueId);
                    if (queue == null)
                        return;
                    queue.UserLeave(obj.From);
                }
                catch (Exception e)
                {
                    Log.Error("LeaveMatchmakingQueueMessage", e);
                }
            }
        }
示例#2
0
        public void LeaveQueue(Guid id)
        {
            var msg = new MatchmakingLeaveQueueMessage(_client.Config.MatchamkingBotUser.JidUser, id);

            _messanger.Send(msg);
        }