Skip to content

Module scoped services #2392

Answered by brianlagunas
Tum4ik asked this question in General
Apr 15, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

No, Prism does not support resolving modules using a scoped service. You would need to customize Prism to do this. however, this would be no simple task. Plus, scoped services wouldn't really help you here anyways since your main problem is you have multiple implementations for a single interface.

Usually translation services are not specific to modules. There is usually one translation service that works everywhere. In your scenario, one approach could be to create a "marker" interface. This would essentially be another interface like interface IModule1Service : ITranslationService and then register that with the container in each module.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tum4ik
Comment options

Answer selected by Tum4ik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants