/// <summary> /// This method sends a ASCII command. The commands are sent via terminal tunnel. /// </summary> /// <param name="message"> /// The message. /// </param> public void SendAsciiCommand(string message) { // method entry log message // this.log.Trace("SendAsciiCommand(...) - running..."); // start stop watch for execution time measurement var executionTimeStopWatch = new Stopwatch(); executionTimeStopWatch.Start(); // create uri var uri = this.uriCreator.GetAppComInterfaceUri(); // create message var appComMessage = RequestCreator.CreateSendAsciiCommandRequest(message); // send message this.appComProtocolLayer.Post(uri.ToString(), appComMessage); // method exit log message // this.log.Debug("SendAsciiCommand(...) - duration = {0} ms", executionTimeStopWatch.ElapsedMilliseconds); // this.log.Trace("SendAsciiCommand(...) - done"); }