-
Notifications
You must be signed in to change notification settings - Fork 904
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
Refactor command registration so it is autowired #2572
Comments
Looking at the changes required after upgrading the SimpleInjector library from the linked code in this issue: #2436, it seems like the upgraded SimpleInjector 5.x has this autowire functionality built in. So this issue will probably be most easily fixed by moving to a newer SimpleInjector version when moving to a newer .Net FX version. |
This commit updates the way that commands are registered by handling this automatically by iterating through the entire Chocolatey CLI assembly and any valid extensions to find commands that inherit from ICommand and add these to the pending registration list.
This commit updates the way that commands are registered by handling this automatically by iterating through the entire Chocolatey CLI assembly and any valid extensions to find commands that inherit from ICommand and add these to the pending registration list.
🎉 This issue has been resolved in version 1.2.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
As noted in a todo comment
choco/src/chocolatey/infrastructure.app/registration/ContainerBinding.cs
Lines 77 to 104 in d8ca7ba
Internal Issue
The text was updated successfully, but these errors were encountered: