Ejemplo n.º 1
0
        private void DoSendCommand(CommandData command)
        {
            m_currentExecutingCommand = command;
            var commandstring = command.GetAndMarkActive();

            m_loopbackAnswers?.TryGetValue(commandstring, out commandstring);
            if (m_nextResponse != null)
            {
                commandstring = m_nextResponse;
            }
            if (command.Context != null && command.Context.LoggingEnabled)
            {
                command.Context.Logger.LogDetail(this.DisplayName, "Send: " + commandstring);
            }
            DoSendDirect(commandstring);
        }