-
Notifications
You must be signed in to change notification settings - Fork 458
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
Castle.Windsor.Extensions.DependencyInjection Cleanup #536
Comments
Hi. |
@ltines i have noticed that Windsor/src/Castle.Windsor.Extensions.DependencyInjection/Scope/ExtensionContainerRootScope.cs Line 19 in 8a7d927
Has a static var used to keep the root scope? Are we sure using static isn't anti-OO / not SOLID? |
…viderFactoryBase to improve SOLID behaviour and allow more external control castleproject#536
@generik0 the root scope is there so singleton instances can be linked to a scope with explicit Dispose (.NET expects singletons to be disposed on dispose of "outermost" ServiceProvider |
Hi @ltines |
@jonorossi i will close this. The current implementation is good enough |
Hi @jonorossi and @ltines.
I went through the Castle.Windsor.Extensions.DependencyInjection with a fine come and cleaned up.
Do you want the refactoring?
I will make a PR
The text was updated successfully, but these errors were encountered: