mef
Equivalent of CompositionInialiser.SatisfyImports(this) in WPF4?
I am a Silverlight programmer trying my hands at WPF4. In Silverlight 4 while using MEF we write CompositionInialiser.SatisfyImports(this) which allows the MEF 开发者_运维技巧to discover parts and plu[详细]
2023-03-20 14:30 分类:问答Extending with UserControls: How do I return the composable part to initial state?
I have a host WinForm application extended with UserControls. Composition and instantiati开发者_如何学Goon work great on initial startup. When I close the user control, I want to assume that it should[详细]
2023-03-19 17:53 分类:问答MEF Importing ViewModel that needs data, to View for Silverlight
I\'m not sure the best way to get this accomplished. Here\'s my view: public partial class MyPage : Page[详细]
2023-03-18 04:35 分类:问答Prism 4 - locally scoped RegionManager
I have silverlight 4 application with PRISM 4, I\'m using MEF. My Shell defines one main region in which modules are loaded, I want modules to have their own RegionManager, so regions that they defin[详细]
2023-03-17 15:15 分类:问答A strategy to add more datacontracts/DTOs to a WCF Service without recompiling the Service Project/Solution
I am currently developing a WCF service that will evolve over time to include new DTOs. I am currently using MEF withing the service implementation to export the webservice object. I have the WCF serv[详细]
2023-03-17 04:44 分类:问答MEF ExportFactory<T> - Any way to pass a parameter value prior to creating an export?
Factory.CreateExport() create\'s a ExportLifetimeContext<T> Is there any way to actually pass in a parameter to it so it creates it with a parameter. I found some example code that wasn\'t exa[详细]
2023-03-17 04:05 分类:问答MEF ExportFactory<T> - How to properly dispose in a long-running application?
Basically, is there an easy way to dispose of the imports that are created by an ExportFactory<T>? The reason I ask is because the exports usually contain a reference to something that is still[详细]
2023-03-17 03:56 分类:问答How to use MEF Inherited Export & MetaData?
I have an interface: [InheritedExport(typeof(IMetric))] public interface IMetric { ... } I have a Meta attribute interface:[详细]
2023-03-16 23:13 分类:问答Import allways returns null, but ImportConstructor works
I am trying to use MEF in my application, but I have problem with the Import. [Import (typeof(IUserServices ))][详细]
2023-03-16 21:28 分类:问答unexpected result in mef
i am beginner in MEF. i write this code but i cant understand why program show this result. namespace ConsoleApplication1[详细]
2023-03-16 18:34 分类:问答