Esempio n. 1
0
 public AbpModuleManager(IIocManager iocManager, IAbpPlugInManager abpPlugInManager)
 {
     _modules          = new AbpModuleCollection();
     _iocManager       = iocManager;
     _abpPlugInManager = abpPlugInManager;
     Logger            = NullLogger.Instance;
 }
Esempio n. 2
0
 public AbpModuleManager(IIocManager iocManager, IModuleFinder moduleFinder)
 {
     _modules      = new AbpModuleCollection();
     _iocManager   = iocManager;
     _moduleFinder = moduleFinder;
     Logger        = NullLogger.Instance;
 }
Esempio n. 3
0
        private void LoadAllModules()
        {
            Logger.Debug("Loading Abp modules...");

            var moduleTypes = FindAllModules();

            Logger.Debug("Found " + moduleTypes.Count + " ABP modules in total.");

            RegisterModules(moduleTypes);
            CreateModules(moduleTypes);

            AbpModuleCollection.EnsureKernelModuleToBeFirst(_modules);

            SetDependencies();

            Logger.DebugFormat("{0} modules loaded.", _modules.Count);
        }
Esempio n. 4
0
 public virtual void Initialize(Type startupModule)
 {
     _modules = new AbpModuleCollection(startupModule);
     LoadAllModules();
 }
 public virtual void Initialize(Type startupModule)
 {
     //实例化模块列表,传入的参数是整个项目的启动模块
     _modules = new AbpModuleCollection(startupModule);
     LoadAllModules();
 }
Esempio n. 6
0
 public AbpModuleLoader(AbpModuleCollection modules)
 {
     _modules       = modules;
     AssemblyFinder = DefaultAssemblyFinder.Instance;
     Logger         = NullLogger.Instance;
 }
Esempio n. 7
0
 public AbpModuleLoader(AbpModuleCollection modules)
 {
     _modules = modules;
     Logger   = NullLogger.Instance;
 }
Esempio n. 8
0
 public AbpModuleManager(AbpModuleCollection modules, AbpModuleLoader moduleLoader)
 {
     _moduleLoader = moduleLoader;
     _modules      = modules;
 }