Skip to content

How does the dryioc container fit into iservicelocator in the latest version 8.0 #2237

Answered by dansiegel
LostAsk asked this question in General
Discussion options

You must be logged in to vote

@LostAsk we have dropped the dependency on IServiceLocator in Prism 8 which is why it is no longer there. If you have a dependency on it, it tells me there is probably some code smell where you are doing some things that you shouldn't be doing. While there are some legitimate use cases for it, I would encourage you to re-evaluate the code and look how you can pull it out. Assuming for a moment that you have a legitimate use case for why you might need it, you can either use Prism's abstractions or register IServiceLocator yourself.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dansiegel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants