MEF2 error with custom metadata attributes

The nuget version of MEF (MEF2?) can't handle null values on custom metadata attributes when AllowMultiple is true. It will try to construct an array (which is ok) but TypeInspector.AddMetadata cal...

Id #14625 | Release: None | Updated: Jul 17 at 3:26 PM by Zarat | Created: Jul 17 at 3:26 PM by Zarat

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

Id #14624 | Release: None | Updated: Jul 6 at 1:02 PM by RicardoPons | Created: Jul 6 at 1:02 PM by RicardoPons

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: Apr 23 at 1:52 PM by NagamaniT | Created: Apr 23 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

AtomicComposition encountered an unexpected Exception

Getting the following error occasionally ProcessEntry() failed. InvalidOperationException: AtomicComposition encountered an unexpected Exception, review InnerException for details. Stack Trace:...

Id #14613 | Release: None | Updated: Jul 9, 2014 at 2:17 PM by nazbrok | Created: May 6, 2014 at 6:05 AM by ranjanks

Generic registration does not work

Generic registration does not work Example: RegistrationBuilder.ForTypesDerivedFrom(typeof(IRepository<>)).Export();

Id #14612 | Release: None | Updated: Mar 12, 2014 at 4:17 PM by seletskysergey | Created: Mar 12, 2014 at 4:17 PM by seletskysergey

Performance issue in SmallSparseInitonlyArray

Hello, I have found a significant performance issue when using lost of Shared parts. 50% of composition time is spent inside System.Composition.Hosting.Util.SmallSparseInitonlyArray.Add on string...

Id #14611 | Release: None | Updated: Jun 7, 2014 at 10:39 PM by nblumhardt | Created: Feb 13, 2014 at 3:04 AM by PavelGatilov

silverlight for MEF

Hello i was checking this article: http://msdn.microsoft.com/en-us/library/ms171868(v=vs.110).aspx#core and i was not able to see any information about Silverlight, or also inside PRISM, etc. ...

Id #14610 | Release: None | Updated: Nov 7, 2013 at 7:15 AM by jlsfernandez | Created: Nov 7, 2013 at 7:14 AM by jlsfernandez

Bug in CompositionContract Equals

The Equals method of the CompositionContract in the System.Composition.Runtime assembly has a bug. The Equals method will eventually internally call ConstraintEqual, which is ultimately where the ...

Id #14609 | Release: None | Updated: Sep 11, 2013 at 8:13 PM by sydefekt | Created: Sep 11, 2013 at 8:13 PM by sydefekt

The component (unknown) cannot be created outside the HttpContext sharing boundary.

Hi, I run into this exception this morning because I find out that when I update from old CodePlex code to Microsoft.Composition NuGet package the sharing policy changed and I didn't set the shar...

Id #14608 | Release: None | Updated: Aug 2, 2013 at 10:35 PM by jovicam | Created: Jul 29, 2013 at 3:49 PM by ido_ran

Defining Scope in MEF with CompositionScopeDefinition

You cannot use CompositionScopeDefinition in conjunction with an AssemblyCatalog. http://stackoverflow.com/questions/16943121/defining-scope-in-mef-with-compositionscopedefinition?answertab=votes...

Id #14607 | Release: None | Updated: Aug 2, 2013 at 10:35 PM by jovicam | Created: Jun 6, 2013 at 2:51 PM by rehansaeed

Plugin can't deserialize -?

Hi, I've developed a plugin for my MEF application, and it uses it's own serialize / deserialize utility for persisting state data (BinaryFormatter). On it's own outside of MEF, the plugin projec...

Id #14606 | Release: None | Updated: Aug 2, 2013 at 10:35 PM by jovicam | Created: Mar 15, 2013 at 1:45 PM by wak

DirectoryCatalog and assembly with same name, bug?

Hi All, I have a scenario where my application (say Program.exe) runs from a Bin folder. There is a Bin/Plugins folder which has some more assemblies (say Plugin1.dll and Plugin2.dll). For some r...

Id #14605 | Release: None | Updated: Aug 2, 2013 at 10:35 PM by jovicam | Created: Feb 28, 2013 at 2:45 AM by ravneetg

Shared part instantiated twice

When a: Shared part Involved in a circular dependency Has more than one export Then the part should be created only once but is instantiated twice. Found in version 1.0.16. Failing test case belo...

Id #14604 | Release: None | Updated: Aug 2, 2013 at 10:34 PM by jovicam | Created: Jan 30, 2013 at 5:12 AM by nblumhardt

WP8 support missing in PCL assemblies!

Since Windows Phone 8 is not checked as supported target framework in the MEF portable class libraries (currently only .NET for Windows Store apps and .NET Framework 4.5), it will only work in emul...

Id #14603 | Release: None | Updated: Jan 28 at 5:31 PM by MartinDubovszki | Created: Dec 11, 2012 at 6:11 PM by Will_o_Wisp

Missing Component DeploymentCatalog

I moved some code from the 4.0 framework to the 4.5 framework and the object System.ComponentModel.Composition.Hosting.DeploymentCatalog doesn't exist anymore.

Id #14602 | Release: None | Updated: Aug 2, 2013 at 10:34 PM by jovicam | Created: Dec 5, 2012 at 9:15 PM by thaehn

Couple of very hindering issues with RegistrationBuilder

Hi everyone, I found several issues with RegistrationBuilder that are quite strange...can anyone confirm are they really like this or? 1) When defining convention on generic interface to export...

Id #14601 | Release: None | Updated: Aug 2, 2013 at 10:34 PM by jovicam | Created: Oct 27, 2012 at 2:32 PM by Vladan

  • 1-25 of 25 Work Items
    • Previous
    • 1
    • Next
    • Showing
    • 10
    • 25
    • 100
    • Work Items