Exemplo n.º 1
0
        /// <inheritdoc cref="IServerConnection"/>
        public string SendStringWithResult(string str, TimeSpan timeout)
        {
            if (!IsConnected)
            {
                return(string.Empty);
            }

            lock (lockObject)
            {
                return(Client.SendLineAndGetReply(EscapeChars(str) + CommandDelimiter, timeout)?.MessageString);
            }
        }