-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Improve scoping mechanism #314
Comments
Hello, It is interesting to see how the impl / ideas are developed in sync for similar tools. I've played with idea for container implementing the "scope manager" abstraction to enable "parallel" / container-bound scopes. |
Absolutely. It is one of the really nice things about open source. We can learn from each other 👍 |
Basic support for resolving services off the scope.
|
Implemented all GetInstance convenience methods as extension methods so that we don't need to reimplement all these method on the Scope class |
The implementation today consists of the following main components
So the IScopeManagerProvider is providing scope managers either per thread or per logical call context (AsyncLocal<T>)
In order to support resolving services directly off the scope (#291), we need to be able to set the current scope managed by the scope manager. By creating context specific scope managers (PerThreadScopeManager, PerLogicalCallContextScopeManager) we will not only simplify the current implementation, but we will also lay the foundation for supporting both parallell scopes(#112) and resolving services directly off the scope.
The text was updated successfully, but these errors were encountered: