Пример #1
0
 public bool ProcessG2HMessage(MonMsg_G2H request)
 {
     try
     {
         ExMonServer4CommsServerProxy exMonProxy = ExMonServer4CommsServerProxyFactory.Get();
         return(exMonProxy.ProcessG2HMessage(request));
     }
     catch (Exception ex)
     {
         ExceptionManager.Publish(ex);
         return(false);
     }
 }
Пример #2
0
        public void Test()
        {
            ExMonServer4CommsServerCallbackProxy proxy = ExMonServer4CommsServerProxyFactory.Get(_exec, ExMonServer4CommsServerCallbackTypes.ProcessH2GMessage,
                                                                                                 this, 10000, null);
            ExMonServer4CommsServerProxy sendProxy = ExMonServer4CommsServerProxyFactory.Get(this);

            while (true)
            {
                Console.WriteLine(@"Press any key to continue...");
                string s = Console.ReadLine();
                if (s == "q")
                {
                    break;
                }

                sendProxy.ProcessG2HMessage(new MonMsg_G2H()
                {
                    FaultSource    = 100,
                    FaultType      = 1,
                    InstallationNo = 11,
                    IpAddress      = "192.168.2.10",
                });
            }
        }
 public ExCommsMonitorProcessor(IExMonServer4CommsServerCallback callback)
 {
     exMonProxy = ExMonServer4CommsServerProxyFactory.Get(callback);
 }
 public ExCommsMonitorProcessor(IExMonServer4CommsServerCallback callback)
 {
     exMonProxy = ExMonServer4CommsServerProxyFactory.Get(callback);
 }