Exemple #1
0
        private static int StartApplication(string[] args, Func <Bootstrapper> getBootstrapperFunc)
        {
            Application.EnableVisualStyles();

            Thread.CurrentThread.Name = "ProgramThread";

            InitializeLogging();
            Logger.Debug("Starting PDFCreator");

            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            var application = new SimpleInjectorPrismApplication(_container);

            BootstrapContainerAndApplication(getBootstrapperFunc(), application);

            InitalizeApplication(args, application);

            VerifyContainer();

            return(application.Run());
        }