Esempio n. 1
0
 protected override void OnStart(string[] args)
 {
     timer               = new Timer();
     executer            = new SqlExecuter();
     this.timer.Interval = 86400000;
     timer.Elapsed      += Timer_Elapsed;
     timer.Enabled       = true;
 }
Esempio n. 2
0
 /// <summary>
 /// Calls the <paramref name="executer"/> to run a method, checking for Old reservations
 /// </summary>
 /// <param name="executer"></param>
 public static void CheckForOldReservations(SqlExecuter executer)
 {
     if (executer == null)
     {
         WriteErrorLog("Execute object was null in library.cs " + DateTime.Now);
     }
     else
     {
         executer.RemoveOldReservations();
     }
 }