ContainerLocator and Constructor Parameters #2768
Unanswered
mossywossy
asked this question in
WPF
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm upgrading a project from Prism 6 to Prism 8. In Prism 6 I was passing an array ParameterOverride[] to Unity's Resolve to pass parameters to the appropriate constructor of the class I was resolving. For example:
_container.Resolve<MyViewModel>(orides); // _container here is an IUnityContainer
I was trying to find a definitive way of doing this using ContainerLocator. Is it currently possible?
I have also posted a StackOverflow question on this here
Beta Was this translation helpful? Give feedback.
All reactions