Unity Bootstrapper.Container is null

Topics: Prism v4 - WPF 4
Dec 15, 2010 at 3:04 PM
Edited Dec 15, 2010 at 4:30 PM

I'm running into a situation where my Bootstrapper.Container is  not yet intialized when the ContainerConfigured event is fired.  I first subscribe to the event, and shortly there after I call Bootstrapper.Run() (All this occurs in my application's OnStartup event handler). 

When I trace through the code,  I noticed in Run() method in UnityBootstrapper.cs the ContainerConfigured event is fired when during the call to this.CreateModuleCatalog(). This occurs just before this.Container is intialized with this.CreateContainer(). 


EDIT: Nevermind this, I found a good solution.

Dec 15, 2010 at 7:18 PM


Is good to hear you could figure it out. You might also find the following Prism´s documentation chapters useful:

· Chapter 2: Initializing Prism Applications

· Chapter 3: Managing Dependencies Between Components

I hope you find this information handy.


Miguel Bronzovic