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();
        }
Exemplo n.º 2
0
        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();
        }