Service Register

7 czerwca 2020 05:45:00
  • Wysłany: 18 maja 2020 11:30
  • 37
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
  • Wysłany: 18 maja 2020 11:49
  • Moderator
  • 571
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
  • Wysłany: 18 maja 2020 13:10
  • 37
you mean register like this

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

Greards

Yao

0
  • Wysłany: 18 maja 2020 14:59
  • 37


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

Regards

Yao
0
  • Wysłany: 22 maja 2020 00:43
  • 37
Thank you

Solved my problem by registering Provider.
0
  • Wysłany: 22 maja 2020 05:32
  • Moderator
  • 571
That's great!
Best regards,
Patryk

GrandNode Team
0
back to top
Filters