protected override void OnStop() { if (_watchDog != null) { _watchDog.Dispose(); _watchDog = null; } }
protected override void OnStart(string[] args) { _watchDog = new ServiceWatchDog(new String[] { "CashRc", "CashDe" }); }