static void Main(string[] args) { ConsumerApp app = new ConsumerApp(); try { app.RunSchoolInfoConsumer(); app.RunStaffPersonalConsumer(); } catch (Exception e) { if (log.IsErrorEnabled) { log.Error("Error running the " + SettingsManager.ConsumerSettings.ApplicationKey + " Consumer.\n" + ExceptionUtils.InferErrorResponseMessage(e), e); } } Console.WriteLine("Press any key to continue ..."); Console.ReadKey(); }
static void Main(string[] args) { ConsumerApp app = new ConsumerApp(); try { app.RunSchoolInfoConsumer(); app.RunStaffPersonalConsumer(); app.RunStudentContactRelationshipConsumer(); app.RunStudentPersonalConsumer(); app.RunWellbeingCharacteristicConsumer(); } catch (Exception e) { if (log.IsErrorEnabled) { log.Error("Error running the ConsumerApp.\n" + ExceptionUtils.InferErrorResponseMessage(e), e); } } Console.WriteLine("Press any key to continue ..."); Console.ReadKey(); }