views:

37

answers:

0

The reason I want to load modules dynamically is to avoid circular dependency issue. I have following layers View --> ViewModel --> DataProvider --> ServiceClient (wcf proxies).

Now I want a static IoC container that can be shared across these layers. I want to make my View testable and to do that I’ll have to inject the various dependencies in various layers and mock out those dependencies as well. Now issue I am facing is where to declare and load ninject modules.

i also realised in Silverlight version of Ninject there is no version of Load which take string arugment, which can be used to load the modules dynamically Load("*.dll"). How can I achieve dynamic loading in Silverlight

Thanks