Ich arbeite an NopCommerce CMS. Ich habe mein eigenes Plugin erstellt und möchte es über das Admin-Panel installieren. Ich habe das Plugin erfolgreich erstellt und es wird im Adminbereich unter dem Bereich "Lokales Plugin" angezeigt. Wenn ich versuche, es zu installieren, erhalte ich den Fehler "Die Methode oder Operation ist nicht implementiert.". Kann mir jemand sagen, was ich vermisse?Was ist der Fehler "Die Methode oder Operation ist nicht implementiert." in NopCommerce Plugin während der Installation eines neuen Plugins
finden Sie den Code unten, dass ich schreiben zu installieren:
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();
}
Doh! Implementieren Sie die Eigenschaft 'PluginDescriptor'. –