AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Bridge pattern

Open TomYip opened this issue 7 years ago • 1 comments

I have a controller which take ISomething as dependency. There are already multiple classes implementing this interface. How can I control which concrete class in injected to the constructor of this controller? Thanks!


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

TomYip avatar Mar 22 '19 21:03 TomYip

Hello! Thanks for contacting us. This sounds like a general question about using ASP.NET Core. While we try to look at and respond to all issues, for questions like this we recommend posting to a community support group like Stack Overflow with the asp.net-core tag.

Rick-Anderson avatar Mar 23 '19 06:03 Rick-Anderson