After taking a look more closely, it seems that my question number 2 is satisfiable and, the sample codes use it. It is totally possible to declare Shell container and use MEF to insert Chidren to the shell container. About my question number 1, it seems that it is not possible unfortunately ... The all application is always executed in the default app domain so, only one configuration file can be used for all classes and components of the application. It seems that it is not possible to have some kind of configurable "Modules". I mean by "Modules" an aggregation of classes or assemblys that are logically tied together. Each Module should be configurable with one configuration file, and can interact with other Modules of the application. Also, a module should be dynamically loadable and unloadable... Imagine for example an application which can be composed by a 'Communication Module' that should be configurable with an App.config file because it use WCF client, and a "UI Module" that should also have its own configuration file. It seems that this scenario is not possible to realize using MEF ... Please tell me if I am right or wrong. Regards, Riana
|