protected override void OnStop()
        {
            WatchdogController controller =
                WatchdogController.GetInstance();

            controller.Stop();
        }
예제 #2
0
 public static WatchdogController GetInstance()
 {
     if (controller == null)
     {
         controller = new WatchdogController();
     }
     return(controller);
 }
        protected override void OnStart(string[] args)
        {
            WatchdogController.SetServiceLogger(myDLPEventLog);
            WatchdogController controller =
                WatchdogController.GetInstance();

            controller.Start();
        }
 public static WatchdogController GetInstance()
 {
     if (controller == null)
     {
         controller = new WatchdogController();
     }
     return controller;
 }