question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can asp.net core 3.0 support [Autowired] Attribute to implement Dependency injection

See original GitHub issue

Can 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
davidfowlcommented, Sep 28, 2019

No, there’s no plan to implement property injection.

0reactions
analogrelaycommented, Apr 8, 2020

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.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found