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

            controller.Stop();
        }
Exemple #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;
 }