Esempio n. 1
0
        public void OnNewRequest(string sessionId, RequestMessage request)
        {
            if (request == null)
            {
                return;
            }

            var commandType = CommandType.GetCommandType(request);

            if (commandType == string.Empty)
            {
                return;
            }

            if (_commands.TryGetValue(commandType, out IHostCommand command))
            {
                command.Execute(sessionId, request);
            }
        }