public virtual void StartModules() { var sortedModules = _modules.GetSortedModuleListByDependency(); sortedModules.ForEach(module => module.Instance.PreInitialize()); sortedModules.ForEach(module => module.Instance.Initialize()); sortedModules.ForEach(module => module.Instance.PostInitialize()); }
public virtual void Initialize(IAbpInitializationContext initializationContext) { _moduleLoader.LoadAll(); var sortedModules = _modules.GetSortedModuleListByDependency(); sortedModules.ForEach(module => module.Instance.Configure(AbpConfiguration.Instance)); sortedModules.ForEach(module => module.Instance.PreInitialize(initializationContext)); sortedModules.ForEach(module => module.Instance.Initialize(initializationContext)); sortedModules.ForEach(module => module.Instance.PostInitialize(initializationContext)); }
public virtual void InitializeModules <TTenantId, TUserId>() where TTenantId : struct where TUserId : struct { LoadAll(); var sortedModules = _modules.GetSortedModuleListByDependency(); sortedModules.ForEach(module => module.Instance.PreInitialize <TTenantId, TUserId>()); sortedModules.ForEach(module => module.Instance.Initialize <TTenantId, TUserId>()); sortedModules.ForEach(module => module.Instance.PostInitialize <TTenantId, TUserId>()); }
public virtual void Initialize(IAbpInitializationContext initializationContext) { _moduleLoader.LoadAll(); var sortedModules = _modules.GetSortedModuleListByDependency(); IocManager.Instance.AddConventionalRegisterer(new BasicConventionalRegisterer()); //TODO: Remove somewhere else! sortedModules.ForEach(module => module.Instance.PreInitialize(initializationContext)); IocManager.Instance.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly(), new ConventionalRegistrationConfig() { InstallInstallers = false }); //TODO: Remove somewhere else! sortedModules.ForEach(module => module.Instance.Initialize(initializationContext)); sortedModules.ForEach(module => module.Instance.PostInitialize(initializationContext)); }