Пример #1
0
        protected override void OnStart(string[] args)
        {
            eventLog1.WriteEntry("In OnStart");
            System.Diagnostics.EventLog.WriteEntry("Please", "hello2");
            m_receive = new HeartBeatReceiver();
            System.Diagnostics.EventLog.WriteEntry("dedasf", "afasf");

            m_receive.StartServer();
            System.Diagnostics.EventLog.WriteEntry("done", "done");
        }
Пример #2
0
 protected override void OnStart(string[] args)
 {
     m_receive = new HeartBeatReceiver();
     m_receive.StartServer();
     System.Diagnostics.EventLog.WriteEntry("HeartBeat Monitor", "Service Start Event Triggered");
 }