-
-
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
Func<> with arguments #666
Comments
@Griboedoff Does it work if you remove |
It will. But for some legacy reasons we have |
I need to think about that. |
Okay, thanks For now I think the best solution is explicit factory for class B which curries all arguments except string from B constructor |
But let keep this issue open for now. It is also an interesting number of issue. |
net6, DryIoc 5.4.3
Hi!
I can't find the way to reuse depencency A when using creation Func for B.
My use case is this:
currently DryIoc calls A constructor every time
getB
called.Is there a way to reuse A instance in creating B?
P.S. I saw docs for Func wrapper but
asResolutionCall
does not do the job.The text was updated successfully, but these errors were encountered: