Skip to content
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

Support keyed DI services in data portal method injection #4488

Open
rockfordlhotka opened this issue Feb 15, 2025 · 0 comments
Open

Support keyed DI services in data portal method injection #4488

rockfordlhotka opened this issue Feb 15, 2025 · 0 comments

Comments

@rockfordlhotka
Copy link
Member

It is now possible (in .NET 9) to register a DI service with the AddAsKeyed extension, and to then select a keyed service during injection with the use of the FromKeyedServices attribute.

We should look into supporting the FromKeyedServices attribute alongside the Inject attribute used for method parameter injection in the data portal.

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

No branches or pull requests

1 participant