Service Register

Friday, April 26, 2024 2:17:20 AM
  • Posted: Monday, May 18, 2020 11:30 AM
  • 54
i am installing one of my plugin but i am getting this error

Plugin has not been registered getRequiredService - dependency

i have one service

builder.RegisterType<TpvOrderService>().As<ITpvOrderService>() .InstancePerLifetimeScope();

in ITpvOrderService i have
ITpvOrderService : IOrderProcessingService

and in TpvService i have

TpvOrderService : OrderProcessingService , ITpvOrderService


what i am doing wrong

Regards

Yao




0
  • Posted: Monday, May 18, 2020 11:49 AM
  • 953
Hi,

I suppose you forgot, to register it, here are the details: https://docs.grandnode.com/how-to-override-service-by-plugin
Best regards,
Patryk

GrandNode Team
0
  • Posted: Monday, May 18, 2020 1:10 PM
  • 54
you mean register like this

builder.RegisterType<TpvOrderService>().As<ITpvOrderService>() .InstancePerLifetimeScope();

Greards

Yao

0
  • Posted: Monday, May 18, 2020 2:59 PM
  • 54


what i am trying to do is adding a new method in orderprocessingservice not overriding it

Regards

Yao
0
  • Posted: Friday, May 22, 2020 12:43 AM
  • 54
Thank you

Solved my problem by registering Provider.
0
  • Posted: Friday, May 22, 2020 5:32 AM
  • 953
That's great!
Best regards,
Patryk

GrandNode Team
0
back to top
Filters