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
Assembly/Assembler need thread safety #221
Comments
I should say I am using a heavily modified |
I agree👍 As we talked in #139, I also want to enhance concurrency model. I'll try to implement concurrency for Assembly/Assembler. If you can show me your modified code, it's very helpful! |
How is this coming along? I'm also worried about thread safety. Right now I'm creating my |
So what is the mechanism for exposing a thread safe resolver from the Assembler? |
@sprynmr |
I've created a patch: #445. I would really appreciate if somebody could review this! Thanks :) |
The PR submitted above #445 appears to fix the issue. As a workaround, I'm using the following extension function until the PR is merged:
|
Unless I'm missing something, there is currently no way to call
synchronized
from anAssembly
and theresolver
property doesn't apply it. So, usingAssembly
seems to always be unsafe.For the moment I've copied
SynchronizedResolver
into our project (the version provided by Swinject is not public) and am wrapping theAssembly.resolver
with it.The text was updated successfully, but these errors were encountered: