سؤال

I'm new with IoC, and i'm wondering if best practices allow the container to use the mediator class, for example MVVM Lite's Messenger. Can the container regiser for and send messages?

Thank you very much!

هل كانت مفيدة؟

المحلول

Your container should not (and doesn't need to), talk to any part of your application. The only point that you should reference your container is at your composition root which is normally in your applications bootstrapper.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top