什么是错误"方法或操作未实现".在安装新插件期间在nopCommerce插件中

Ana*_*bey 6 c# nopcommerce

我正在研究nopCommerce CMS.我创建了自己的插件,并希望通过管理面板安装它.我成功创建了插件,并在"本地插件"部分的管理面板中显示.当我尝试安装它时,我收到错误"方法或操作未实现.".任何人都可以告诉我我错过了什么.

请查找我编写安装的以下代码:

private readonly ISettingService _settingService;

    public AdminInvoicePlugin(ISettingService settingService)
    {
        this._settingService = settingService;
    }

    public void GetConfigurationRoute(out string actionName, out string controllerName, out System.Web.Routing.RouteValueDictionary routeValues)
    {
        actionName = "Configure";
        controllerName = "InvoiceAdmin";
        routeValues = new RouteValueDictionary { { "Namespaces",     "Shopfast.Plugin.Invoice.Admin.Controllers" }, { "area", null } };
    }

   void IPlugin.Install()
    {
        base.Install();
    }

    PluginDescriptor IPlugin.PluginDescriptor
    {
        get
        {
            throw new NotImplementedException();
        }
        set
        {
            throw new NotImplementedException();
        }
    }

    void IPlugin.Uninstall()
    {
        base.Uninstall();
    }
Run Code Online (Sandbox Code Playgroud)

Dan*_*scu 1

请记住,如果服务器进程当时仍在运行,NopCommerce 插件代码并不总是在部署后立即刷新。它通常需要重新启动应用程序(后端,右上角)和/或从“配置”->“插件”页面执行“重新加载插件列表”操作。

删除该throw NotImplementedException部件后,您很可能仍然会遇到错误消息,因为内存中的代码未更新。