static public void InvokeUpdate(MessageInvoke what) { try { Ping(); if (PC == null) { if (Connect() == false) { Debug.WriteLine("SDC_Agent_UI Thread abort"); PC = null; MsgType = MessageTypes.NotConnected; ID = 0; MsgType = MessageTypes.Nix; Message = ""; CustomNumber = 0; return; } } PC.InvokeMessage(what); } catch (Exception ee) { Debug.WriteLine(ee.ToString()); } }
public void InvokeMessage(MessageInvoke what) { switch (what) { case MessageInvoke.ReloadPolicies: Threads.InvokePolicySync(); break; case MessageInvoke.ReloadReports: Threads.InvokeReportingSync(); break; } }
public void InvokeMessage(MessageInvoke what) { Channel.InvokeMessage(what); }