public bool ProcessG2HMessage(MonMsg_G2H request) { try { ExMonServer4CommsServerProxy exMonProxy = ExMonServer4CommsServerProxyFactory.Get(); return(exMonProxy.ProcessG2HMessage(request)); } catch (Exception ex) { ExceptionManager.Publish(ex); return(false); } }
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); }