I tried copying in all of the methods from SpecificationAttributeService into my class, but that made it worse giving a bunch of other errors for things that it is looking for inside of each method. I don't think that is the way to go.
In trying to learn, follow and understand the article pointed to by Adam, I did this.
I coded my class like this:
namespace Nop.Plugin.Misc.LakesideImport.ExportImport
{
public class LakesideImportManager : ImportManager, ISpecificationAttributeService
{
I added this in the fields region:
private readonly ISpecificationAttributeService _specificationAttributeService;
I then put in this constructor:
public LakesideImportManager(ISpecificationAttributeService specificationAttributeService)
{
this._specificationAttributeService = specificationAttributeService;
}
I also put this in the DependencyRegistrar class:
builder.RegisterType<SpecificationAttributeService>().As<ISpecificationAttributeService>();
The error I am getting is on the constructor. It says "There is no argument given that corresponds to the required formal parameter 'productService' of ImportManager.ImportManager(IProductService, ... it lists all 25 interfaces)".
I don't know what else to do. I'm trying to understand and use the information in that article and tried to relate it to what I want to accomplish. I think part of the problem is that I am not only inheriting another class, but I am trying to implement an interface at the same time.
If there is anyone that has any idea of what else I need to do or take out or change, I would be gratefully appreciative of it.
Thanks,
Tony