Example #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);
        }
Example #2
0
        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);
        }