示例#1
0
        public static Application RegisterApp(this Application app)
        {
            if (app == null)
            {
                return(app);
            }

            //TODO: Decide wether this will be kept here or the RegisterApp Method will be called programmatically
            //((dynamic)app).RegisterAppMessages();
            MessengerHelper.RegisterAppMessages((dynamic)app);
            //TODO: END Decide wether this will be kept here or the RegisterApp Method will be called programmatically

            app.BuildUnhandledExceptionHandler();

            return(app);
        }