Beispiel #1
0
        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());
            }
        }
Beispiel #2
0
        public void InvokeMessage(MessageInvoke what)
        {
            switch (what)
            {
            case MessageInvoke.ReloadPolicies:
                Threads.InvokePolicySync();
                break;

            case MessageInvoke.ReloadReports:
                Threads.InvokeReportingSync();
                break;
            }
        }
Beispiel #3
0
 public void InvokeMessage(MessageInvoke what)
 {
     Channel.InvokeMessage(what);
 }