New Post: Strongly typed metadata
Hi all,I'm relatively new to MEF, so please forgive me for poor code or if this is blindingly obvious.I'm using the System.Composition namespace from the MEF for web and Windows Store apps NuGet...
View ArticleNew Post: Strongly typed metadata
I think I've worked it out after reading this SO question.I created a Metadata Attribute:[MetadataAttribute] publicclass ExtensionMetadataAttribute : ExportAttribute, IExtensionMetadata { publicint ID...
View ArticleNew Post: Import visibility with MEFX
Hi again,Nobody can explain this?Is this behaviour expected?Thanks for an answer Olivier Monney
View ArticleNew Post: Import visibility with MEFX
Hi Oliver,In MEF's discovery model, only types that have exports are considered "parts". This is because although MEF could find imports on types like the one above, there's no way for a composition...
View ArticleNew Post: Correct behavior
Hi Martin,Any chance of some code illustrating your scenario here?Cheers,Nick
View ArticleNew Post: Import visibility with MEFX
Hi,Thanks for your anwser.The situation I'm aiming to detect is to tell MEFX which classes are initiating a chain composition. In the small example it would be "MyClass"I just wanted to list my imports...
View ArticleNew Post: Removal of System.Composition.Web.Mvc and the support for .NET 4.0
I am also looking forward MEF 2.0 to be supported in .NET 4.0.
View ArticleNew Post: Cannot call SatisfyImports on a object of type 'xx' because it is...
You only need to call SatisfyImports once then use the "GetExportedValue" to new up the types from the container Container.GetExportedValue<ICountries>();I know this is quite an old post but...
View ArticleCommented Issue: If a base class has an import that fails the exception does...
In the code below the test fails until you un-comment on the line "var typeCatalog = new TypeCatalog(typeof(Foo));//, typeof(Bar));". Then the test works.FooImporter is a class that imports Foo. The...
View ArticleNew Post: Release
Hi, two questions:1 WhenfreedMEF2?2 MEF2will havebetter integration withMVC4 /WebAPI?
View ArticleNew Post: problem on MEF Winform load plugin DLL
i am new the MEF, i have a winform project and a class DLL project.i wish not to add the DLL in the winform project, and trying to use MEF to export my class DLL project and import the DLL to winform...
View ArticleNew Post: Removal of System.Composition.Web.Mvc and the support for .NET 4.0
Hola ! I would like to start to learn and understand MEF and I am also fixed to Net 4.Looks like bad politics, the solution file is also VS2012 [??].Completely disappointed .... Best regards, ++mabra
View ArticleNew Post: problem on MEF Winform load plugin DLL
my problem solved during 5am woke up time...
View ArticleNew Post: PartMetadata vs. ExportMetadata
Just in case someone stumbles upon this thread, the above answer is outdated. PartMetadata is used in the implementation of open-generics (and possibly other places I am not aware of).When using open...
View ArticleNew Post: MEF with PostSharp
Hi,I'm having a problem using PostSharp and MEF together. I have a MEF export that has a reference to an Assembly that is process by PostSharp. When I try to run the application I got an exception...
View ArticleNew Comment on "Documentation"
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information?...
View ArticleNew Comment on "Documentation"
Hello, this is a really fascinating web blog and I have loved reading several of the articles and posts contained upon the site, sustain the great work and hope to read a lot more exciting...
View ArticleNew Post: MEF exports failure in MVC app
Hello, I'm testing with MEF in MVC and I'm experiencing an issue when getting exported parts from my catalog; probably it's just me, but I'm stuck with it. Here is the minimalist scenario: a) a...
View ArticleNew Post: MEF exports failure in MVC app
Hi- sounds strange. Have you checked that all code is being built against the same MVC version, or that the required binding redirects are in place?Cheers, Nick
View Article