protected override void OnStop() { ServiceLog.WriteErrorLog("Mail service stopped"); timer.Stop(); timer.Dispose(); db.Dispose(); }
protected override void OnStart(string[] args) { ServiceLog.WriteErrorLog("Mail service started"); }