internal void Exceution() { try { AppLog.Error("Service is Started at " + DateTime.Now); using (FetchDataManager caseCreation = new FetchDataManager()) { caseCreation.getData(); } } catch (Exception ex) { AppLog.Error(Constants.Applogger.logg.error + ex.ToString()); } }
/// <summary> /// The main entry point for the application. /// </summary> static void Main() { //ServiceBase[] ServicesToRun; //ServicesToRun = new ServiceBase[] //{ // new Service1() //}; //ServiceBase.Run(ServicesToRun); while (true) { using (FetchDataManager caseCreation = new FetchDataManager()) { caseCreation.getData(); } } }