예제 #1
0
        /// <summary>
        /// Initializes the ABP system.
        /// </summary>
        public virtual void Initialize()
        {
            ResolveLogger();

            try
            {
                RegisterBootstrapper();
                IocManager.IocContainer.Install(new AbpCoreInstaller());

                IocManager.Resolve <AbpPlugInManager>().PlugInSources.AddRange(PlugInSources);
                IocManager.Resolve <AbpStartupConfiguration>().Initialize();

                _moduleManager = IocManager.Resolve <AbpModuleManager>();
                _moduleManager.Initialize(StartupModule);
                _moduleManager.StartModules();
            }
            catch (Exception ex)
            {
                _logger.Fatal(ex.ToString(), ex);
                throw;
            }
        }
        /// <summary>
        /// Initializes the application.
        /// </summary>
        public virtual void Initialize()
        {
            var initializationContext = new AbpInitializationContext(_modules);

            _moduleManager.Initialize(initializationContext);
        }