public static void PostRequest(string request, string server, string appName, int port = 8080)
 {
     try
     {
         using (RemoteControlProxy rcp = new RemoteControlProxy(server, appName, port))
         {
             (rcp as IRemoteControl).PostRequest(request);
         }
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
     }
 }
        public static string SendRequest(string request, string server, string appName, int port = 8080)
        {
            try
            {
                using (RemoteControlProxy rcp = new RemoteControlProxy(server, appName, port))
                {
                    return((rcp as IRemoteControl).SendRequest(request));
                }
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }

            return(null);
        }
Пример #3
0
        public static string SendRequest(string request, string server, string appName, int port = 8080)
        {
            try
            {
                using (RemoteControlProxy rcp = new RemoteControlProxy(server, appName, port))
                {
                    return (rcp as IRemoteControl).SendRequest(request);
                }
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }

            return null;
        }