protected virtual void CreateModules(IKernelConfig config) { for (int i = 0; i < config.Modules.Count; i++) { IModuleBuildInfo info = config.Modules[i]; if (info.Active) { IModuleBuilder builder = info.Builder; Type registerType = builder.RegisterType; IApplicationModule module = builder.Build(this, info.Arguments); AddModule(registerType, module); Log.Debug($"Build Module: registerType:'{registerType}', module:'{module}'."); } } }