New Post: Importing Multiple InheritedExport Interfaces
jpatrick62,you need to apply the import attributes over each property as below. Two imports on the same property will not work as the composition engine will not know which import it should use to...
View ArticleReviewed: MEF Analysis Tool (mefx) for .NET 4.0 Beta (十二月 16, 2014)
Rated 4 Stars (out of 5) - oh,my god,it's so hard
View ArticleReviewed: MEF Analysis Tool (mefx) for .NET 4.0 Beta (十二月 23, 2014)
Rated 4 Stars (out of 5) - 只有回复以后才可以下载吗?
View ArticleNew Post: A question about class CompositionContainer
I added a new an instance of CompositionContainer named C2 for a program which has been using an instance of CompositionContainer named C1. I found there are no any import classes within C2, while both...
View ArticleCreated Unassigned: MEF should allow metadata view types with constructors of...
If you create a metadata view type, the constructor of the type must accept an IDictionary<string, object>. This means you can't use an IReadOnlyDictionary<string, object> which is a...
View ArticleNew Post: Resolver assembly file plug-ins in System.Composition (a la...
There's much confusion regarding the DirectoryCatalog that can't be referenced from System.ComponentModel.Composition in VNext ASP.NET projects. It's just a case of different method of doing the same...
View ArticleNew Post: Using MEF with recursion and TreeView
I have an application where I'd like to display a list of all plugins located in a specified directory (and sub-directories). This is my first time using MEF and so I'm having some difficulty...
View ArticleCreated Unassigned: OnImportsSatisfied called in the wrong order [14622]
In the basic scenario in which part A has a dependency on part B, and both part A and part B have methods with [OnImportsSatisfied] attributes, the method in part A is called before that in part B....
View ArticleCommented Unassigned: OnImportsSatisfied called in the wrong order [14622]
In the basic scenario in which part A has a dependency on part B, and both part A and part B have methods with [OnImportsSatisfied] attributes, the method in part A is called before that in part B....
View ArticleNew Post: Make sure that the controller has a parameterless public constructor
I use MEF, WebAPI in VS 2012. I get error __ .","exceptionMessage":"An error occurred when trying to create a controller of type 'ClienteController'. Make sure that the controller has a parameterless...
View ArticleNew Comment on "Sharing and lifetime"
Limited or no documentation on Lifetime, though the heading includes Lifetime.
View ArticleNew Post: Must I use ExportFactory when using CompositionScopeDefinition ?
Hi, Must I use ExportFactory when using CompositionScopeDefinition ? All the sample I found use ExportFactory ,at least for the root object thanks in advance
View ArticleNew Comment on "Exports and Metadata"
Is Metadata handling different in MEF2? When I try to SatisfyImports, this example gives me: System.Composition.Hosting.CompositionFailedException was unhandled HResult=-2146233088 Message=The type...
View ArticleNew Post: Multi-threading issue when using MEF with WCF
Can you leave the answer for this problem Martin? I have the same problem too, isThreadSafe=true can't solve this problem.
View ArticleNew Post: Using MEF with recursion and TreeView
Not sure if you figured it out for yourself, but I posted an idea on my blog which I'll share here. It's in VB though.'Create our Catalog of different Catalogs Dim catalog = New AggregateCatalog() 'Add...
View ArticleCreated Unassigned: Moq Unit testing using MEF Container [14623]
Hi All,In our WPF MVVM Application , we are using MEF to create the instances of class.We are using Moq Framework to perform unit testing for our classes, we have added the parts to Container and this...
View ArticleReviewed: MEF Analysis Tool (mefx) for .NET 4.0 Beta (五月 28, 2015)
Rated 5 Stars (out of 5) - Find is so easy!
View ArticleNew Post: CompositionHosts exports run in parallel sometimes inject null to...
Hello, I am working on a multi-tenant application, where every tenant has its own CompositionHost (System.Composition.Hosting.CompositionHost) with the same part types. When I try to get export of the...
View ArticleCreated Unassigned: Problem deploying Silverlight App using MEF and Azure...
Hello I developed an app using Silverlight 5. When I run this application in my computer this app works like a charm.but When I publish this application to my WebRole in Azure my app is dead.I was...
View Article