public void OnTimer(object sender, System.Timers.ElapsedEventArgs args)
        {
            eventLog1.WriteEntry("PcbAgentService OnTimer event!!", EventLogEntryType.Information, 9000);
            _timer.Stop();
            _timer = null;

            if (PcbAgent.Instance.checkGamePatchPass())
            {
                eventLog1.WriteEntry("PcbAgentService GamePatch Pass!! client_ip:" + PcbAgent.getLocalIPAddress(), EventLogEntryType.Information, 9001);
                return;
            }

            string result = PcbAgent.Instance.sendPcbGamePatchToMaster(PcbAgent.Instance.buildPcbGamePatch());

            eventLog1.WriteEntry("PcbAgentService sendPcbGamePatchToMaster result:" + result, EventLogEntryType.Information, 9002);
        }
Exemple #2
0
 public void Test_getLocalIPAddress()
 {
     Console.WriteLine("ip address:{0}", PcbAgent.getLocalIPAddress());
 }