Example #1
0
 protected override void OnStart(string[] args)
 {
     Logger.log("Service Started at " + DateTime.Now);
     _dailyTimer.Enabled  = true;
     _dailyTimer.Interval = _scheduleTime.Subtract(DateTime.Now).TotalSeconds * 1000;
     _dailyTimer.Elapsed += new System.Timers.ElapsedEventHandler(DailyBackup);
     DailyBackupProcessor.InstantFullBackup();
 }