示例#1
0
        /// <summary>
        /// Reads data from the specified URL and port.
        /// </summary>
        /// <param name="url">The URL.</param>
        /// <param name="port">The port.</param>
        /// <param name="command">The command.</param>
        /// <returns></returns>
        /// <exception cref="System.NotImplementedException"></exception>
        public string Read(string url, int port, string command)
        {
            var result = FileStore.Read(url, command);

            if (string.IsNullOrEmpty(result))
            {
                result = Actual.Read(url, port, command);

                FileStore.Write(url, command, result);
            }

            return(result);
        }