Deprecate Constructor Injection #15968
-
Now that ABP supports AutoFac 7.0, constructor injection should be replaced with required property injection. This will eliminate a bunch of useless boilerplate as it relates to constructors. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Autofac is an implementation that replaces default DI, we can't assume that users will use it. |
Beta Was this translation helpful? Give feedback.
-
I'm afraid I don't think this would be a good option, as Required Properties are a specific concept in Autofac. If I were to replace the dependency injection component (DryIoc), many of ABP's core functionalities would no longer work properly. |
Beta Was this translation helpful? Give feedback.
Autofac is an implementation that replaces default DI, we can't assume that users will use it.