Ninject: Dynamically loading modules in Silverlight

Posted by joblot on Stack Overflow See other posts from Stack Overflow or by joblot
Published on 2010-05-20T23:46:17Z Indexed on 2010/05/20 23:50 UTC
Read the original article Hit count: 361

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about ninject

Related posts about ninject-2