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

Open Generic Registrations #5

Open
ChaseFlorell opened this issue Mar 29, 2024 · 1 comment
Open

Open Generic Registrations #5

ChaseFlorell opened this issue Mar 29, 2024 · 1 comment

Comments

@ChaseFlorell
Copy link

Is it possible to register Open Generics for all implementations of a given type?

In DryIoc we would do something akin to

container.Register(typeof(IServiceProvider<>), typeof(BaseServiceProvider<>), Reuse.Scoped);
@byme8
Copy link
Owner

byme8 commented Mar 29, 2024

No, the implementation is not compatible with NativeAOT.

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