Skip to content

Support for keyed services #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
stamminator opened this issue Oct 30, 2024 · 1 comment
Open

Support for keyed services #9

stamminator opened this issue Oct 30, 2024 · 1 comment

Comments

@stamminator
Copy link

Does this library support the use of keyed services? Something like:

// service configuration
services.AddLazyKeyedTransient<IReportService, SalesReportService>("sales");
services.AddLazyKeyedTransient<IReportService, BudgetReportService>("budget");
// controller constructor
public MyController([FromKeyedServices("sales")] IReportService reportService) { }
@cmendible
Copy link
Contributor

As far as I remember this was not implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants