예제 #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"
         });
 }