Tuesday, September 21, 2010

My Prism Journey (Part 2)

Have you registered some types in your bootstrapper like I have?  Through Prism’s Dependency Injection, I’ve been passing the EventAggregator around to my objects as a parameter.  I’ve also passed in some other registered types, but then I got to thinking…why not just resolve it through the UnityContainer?  Instead of injecting all the registered types I need, I can just pass in a single IUnityContainer and resolve all of the types I need.  Pretty slick!

No comments: