Moq Unit testing using MEF Container

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...

Id #14623 | Release: None | Updated: Thu at 1:52 PM by NagamaniT | Created: Thu at 1:52 PM by NagamaniT

OnImportsSatisfied called in the wrong order

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....

Id #14622 | Release: None | Updated: Jan 22 at 10:38 PM by jwdev | Created: Jan 22 at 10:35 PM by jwdev

MEF should allow metadata view types with constructors of IReadOnlyDictionary<string, object>

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 separate (and ...

Id #14621 | Release: None | Updated: Jan 5 at 10:43 PM by jasonmalinowski | Created: Jan 5 at 10:43 PM by jasonmalinowski

Performance issue caused by scanning for exported members

We have a performance issue with the composition of types from assemblies which have many types, each of them having many members. We never(!) use the [Export] attributes on members. We only use th...

Id #14620 | Release: None | Updated: Apr 6 at 9:21 AM by EngineerSpock | Created: Nov 24, 2014 at 7:48 AM by candritzky

MEF Extension Bug – unexpected module initialization

ModularityWithMef.Desktop Sample Application The MefModuleManager.OnImportsSatisfied() is executing LoadModulesThatAreReadyForLoad() on line 93. Since the ModularityWithMef.Desktop application...

Id #14619 | Release: None | Updated: Nov 6, 2014 at 3:01 PM by BillKrat | Created: Nov 6, 2014 at 2:38 PM by BillKrat

Open generics with type constraints and RegisterationBuilder

When creating an AssemblyCatalog and passing RegistrationBuilder, open generics where the generic interface has type constraints, stop working. See http://stackoverflow.com/q/24590096/782185

Id #14618 | Release: None | Updated: Jul 7, 2014 at 6:40 PM by romandvoskin | Created: Jul 7, 2014 at 6:40 PM by romandvoskin

Global Container for MEF

I have a solution file with multiple projects. I have exported a class in a particular project and imported it in the other projects. Is it necessary to use DirectoryCatalog or is there a way wh...

Id #14617 | Release: None | Updated: Jun 12, 2014 at 7:22 PM by yadu26 | Created: Jun 12, 2014 at 7:22 PM by yadu26

Open Generic types won't register in the catalog on Test Project

Hi folks, I'm facing the same problem described at http://stackoverflow.com/questions/18147371/open-generic-types-wont-register-in-the-catalog/22114304#22114304. I use a Library that use MEF. Thi...

Id #14616 | Release: None | Updated: May 30, 2014 at 3:04 PM by Caldas | Created: May 30, 2014 at 3:04 PM by Caldas

Bug in Open Generics with IBiz<T, int>

In the code below x gets 0 results but it should get one. class Program { static void Main(string[] args) { var cat = new AssemblyCatalog(typeof (Program).Assembly); var con...

Id #14615 | Release: None | Updated: May 13, 2014 at 5:01 AM by AceHack | Created: May 13, 2014 at 5:01 AM by AceHack

AmbiguousMatchException when resolving a class with generic void overloads

Hi, To reproduce this problem, consider the following class: public class Test { public void Execute() { } public void Execute<T>() { } } The following code will fail with an AmbiguousMatchEx...

Id #14614 | Release: None | Updated: May 8, 2014 at 1:28 PM by JackW | Created: May 8, 2014 at 1:28 PM by JackW