TryHandleCommand() public method

public TryHandleCommand ( string command ) : bool
command string
return bool
示例#1
0
        private bool TryHandleCommand(string command, string room)
        {
            string clientId = Context.ConnectionId;
            string userId = GetUserId();

            var commandManager = new CommandManager(clientId, UserAgent, userId, room, _service, _repository, _cache, this);
            return commandManager.TryHandleCommand(command);
        }
示例#2
0
文件: Chat.cs 项目: redsquare/JabbR
        private bool TryHandleCommand(string command)
        {
            string clientId = Context.ClientId;
            string userId = Caller.id;
            string room = Caller.activeRoom;

            var commandManager = new CommandManager(clientId, userId, room, _service, _repository, this);
            return commandManager.TryHandleCommand(command);
        }