private bool LoadServiceSchedule() { dtServiceSchedule = null; dtServiceSchedule = ServiceLoaderDataAccess.GetServiceServiceConfig(SName); if (dtServiceSchedule.Rows.Count == 0) { return(false); } return(true); }
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); } } }