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

Register both as service and implementation #133

Open
notanaverageman opened this issue Dec 2, 2022 · 1 comment
Open

Register both as service and implementation #133

notanaverageman opened this issue Dec 2, 2022 · 1 comment

Comments

@notanaverageman
Copy link
Contributor

When a service is registered as a base type, I want it to also be registered as self so that I can resolve it both via the base type and the self type.

This can be achieved with a RegisterAsSelf bool parameter in attributes. If you can direct me where to make the changes in generator code I can send a PR.

@Eyliess
Copy link

Eyliess commented Nov 11, 2023

This would be a great quality of life improvement, I find myself running into this issue a lot.

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