Home > Net >  Autofac injection problem
Autofac injection problem

Time:01-13

I call in Controller Controller IStudentService is normal, but I want to call in TaskWork is null,

CodePudding user response:

In the controller constructor injection?
You didn't TaskWork tectonic injection,

CodePudding user response:

I want to be in a class attribute injection, only controller can too pit

CodePudding user response:

refer to the second floor of preserved egg tofu reply:
I want to be in a class attribute injection, only controller can too pit

That you are into wrong,
Builder. RegisterType (). As In this way,
  • Related