确保模块不接受一个参数

问题描述

我正在将 kentico 实例从 8.2 版升级到 9 版,并且在 global.asax.cs 文件我有代码

    private static void EnsureDynamicModules(object sender,EventArgs e)
        {
            // Ensures CMSModuleLoader module,which has Isdiscoverable set to false
            ModuleEntryManager.EnsureModule<CMSModuleLoader>();

            // Ensures other possible modules within app code assembly
            ModuleEntryManager.EnsureAppcodemodules(typeof(CMSModuleLoader).Assembly);

       
            var discovery = new Modulediscovery();
            var assembly = typeof(CMSModuleLoader).Assembly;
            foreach (var module in discovery.GetModules(assembly))
            {
                ModuleEntryManager.EnsureModule(module);                  
            }

        }

在“ModuleEntryManager.EnsureModule(module);”这一行我在下面的评论中看到一条波浪线

No overload for method EnsureModule takes one arguments

在这里做错了什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)