public static bool SendTCPSync(TCPBaseComm command) { return(command.Send(out Error)); }
/////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// /// </summary> /// <param name="command"></param> /// <returns></returns> public static Task <bool> SendTCPAsync(TCPBaseComm command) { return(Task.Factory.StartNew(() => command.Send(out Error))); }