Пример #1
0
 protected override void OnStop()
 {
     if (_watchDog != null)
     {
         _watchDog.Dispose();
         _watchDog = null;
     }
 }
Пример #2
0
 protected override void OnStart(string[] args)
 {
     _watchDog = new ServiceWatchDog(new String[]
         {
             "CashRc",
             "CashDe"
         });
 }