Example #1
0
 private bool LoadServiceSchedule()
 {
     dtServiceSchedule = null;
     dtServiceSchedule = ServiceLoaderDataAccess.GetServiceServiceConfig(SName);
     if (dtServiceSchedule.Rows.Count == 0)
     {
         return(false);
     }
     return(true);
 }
Example #2
0
 private bool LoadServiceSchedule()
 {
     while (true)
     {
         try
         {
             dtServiceSchedule = null;
             dtServiceSchedule = ServiceLoaderDataAccess.GetServiceServiceConfig(SName);
             if (dtServiceSchedule.Rows.Count == 0)
             {
                 return(false);
             }
             return(true);
         }
         catch (Exception ex)
         {
             Thread.Sleep(10000);
             Exception exnew = new Exception("Exception while getting service schedule for the service.Will Retry after 10 sec", ex);
             MTSExceptionHandler.HandleException(ref exnew);
         }
     }
 }