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

            return(null);
        }
Esempio n. 3
0
 public static void PostRequest(string appName, string request)
 {
     try
     {
         using (IPCRemoteControlProxy rcp = new IPCRemoteControlProxy(appName))
         {
             (rcp as IRemoteControl).PostRequest(request);
         }
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
     }
 }
Esempio n. 4
0
        public static string SendRequest(string appName, string request)
        {
            try
            {
                using (IPCRemoteControlProxy rcp = new IPCRemoteControlProxy(appName))
                {
                    return (rcp as IRemoteControl).SendRequest(request);
                }
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }

            return null;
        }