Resolve Scoped type to Resolution Root #641
Unanswered
marco-skizza
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'm using
Prism.Wpf
with the legacyUnity
container and want to migrate toDryIoc
.I want to resolve the following dependencies:
Codewise I want to do something like this:
In
Unity
I was able to register a type withnew PerResolveLifetimeManager()
.In the Microsoft DI, it automatically scopes the Resolve() to the Resolution Root if no scope is provided.
Is this also possible with
DryIoc
?I'm thinking of something like a rule
WithResolutionRootAsDefaultScope
... 😊P.S.:
In my case,
Prism
is doing the Resolve() of the types - so I can't create a Scope myself.Beta Was this translation helpful? Give feedback.
All reactions