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);
        }
Exemplo 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);
     }
 }
Exemplo 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;
        }