Esempio n. 1
0
        public static void remotePollTcp(ZifliForm aForm)
        {
            remotingController obj = (remotingController)
                                     Activator.GetObject(typeof(ZifliService.remotingController),
                                                         "tcp://localhost:11975/ZifliServer");

            try
            {
                try
                {
                    obj.initiatePoll();
                    aForm.labelResult_Modify(true);
                }
                catch
                {
                    AdminLogger.WriteEvent("Initiate \"out of band\" poll failed.",
                                           ZifliForm._ERR);
                    aForm.labelResult_Modify(false);
                }
            }
            catch
            {
                AdminLogger.WriteEvent("Failed to achieve IPC channel.",
                                       ZifliForm._ERR);
            }
        }
Esempio n. 2
0
 public static void remotePollTcp(ZifliForm aForm)
 {
     remotingController obj = (remotingController)
         Activator.GetObject(typeof(ZifliService.remotingController),
         "tcp://localhost:11975/ZifliServer");
     try
     {
         try
         {
             obj.initiatePoll();
             aForm.labelResult_Modify(true);
         }
         catch
         {
             AdminLogger.WriteEvent("Initiate \"out of band\" poll failed.",
                 ZifliForm._ERR);
             aForm.labelResult_Modify(false);
         }
     }
     catch
     {
         AdminLogger.WriteEvent("Failed to achieve IPC channel.",
             ZifliForm._ERR);
     }
 }