Can asp.net core 3.0 support [Autowired] Attribute to implement Dependency injection
See original GitHub issueCan asp.net core 3.0 support [Autowired] Attribute to implements Dependency injection(just like Spring Boot @Autowired)?
eg:
[Autowired(LifeTime=Sington)] private readonly IUserService userService{set;get;}
Only construct inject is Not very friendly.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Can asp.net core 3.0 support [Autowired] Attribute to ...
No, there's no plan to implement property injection. 1
Read more >Spring boot Autowired annotation equivalent for .net core ...
In spring boot I am able to use the AutoWired annotation to automagically inject a dependency into my controller. class SomeController extends ...
Read more >Dependency injection into controllers in ASP.NET Core
Discover how ASP.NET Core MVC controllers request their dependencies explicitly via their constructors with dependency injection in ASP.
Read more >Dependency injection in ASP.NET Core
ASP.NET Core supports the dependency injection (DI) software design pattern, which is a technique for achieving Inversion of Control (IoC) ...
Read more >Spring @Autowired Annotation
Spring @Autowired annotation is used for automatic dependency injection. Spring framework is built on dependency injection and we inject the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, there’s no plan to implement property injection.
Closing inactive discussion thread.
Note: Inactive closed issues are locked after 30 days since we don’t triage closed issues and new comments tend to be lost. Feel free to post a new issue if this issue is locked and you have further questions/discussions. See our issue management policies for more details.