Amarkant Kumar

Amarkant Kumar

  • 1.8k
  • 5
  • 113

dependency registeration in NopCommerce 4.20

Nov 2 2019 12:38 AM
Error:
ArgumentException: The type 'Nop.Plugin.SecurityDeposit.SecurityAmt.Factories.ShoppingCartSecurityFactory' is not assignable to service 'Nop.Plugin.SecurityDeposit.SecurityAmt.Factories.IShoppingCartSecurityFactory'.
 
Dependency registering:
 
public virtual void Register(ContainerBuilder builder, ITypeFinder typeFinder, NopConfig config)
{ builder.RegisterType<ShoppingCartSecurityFactory>().As<IShoppingCartSecurityFactory>().
InstancePerLifetimeScope();
}
public int Order => 11;
 
Does anyone have idea of overriding the shoppingcartModelfactory in nopCommerce 4.20 as I am overriding the
shopping cart item in NopCommerce. Can I override shoppingcartModelfactory or not in NopCommerce 4.20?