Created Unassigned: Performance issue in SmallSparseInitonlyArray [14611]
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.Format...
View ArticleNew Post: MEF and generic class
Hello. I use Autofac Mef integration framework in my windows service project. I define several modules and bind them when service start. But don't know how I can move my Repository class in separate...
View ArticleNew Post: The component (unknown) cannot be created outside the HttpContext...
Hi, Had the same issue when using like this: [Shared("Session")] [Export] public sealed class SessionController : ApiController { ... } tnx
View ArticleCreated Unassigned: Generic registration does not work [14612]
Generic registration does not workExample:RegistrationBuilder.ForTypesDerivedFrom(typeof(IRepository<>)).Export();
View ArticleNew Post: Ensuring cleanup when hosted in IIS
Using the lightweight composition version. Successfully creating, discovering and initializing parts. All is well, except in some cases, where IIS still has a lock on the part assembly, preventing...
View ArticleNew Post: Can't import Generic Types After Update from MEF 1 under .NET 4 to...
Hi, I have a project that was on .NET 4.0 using a MEF pre-release from about 2 years ago and we're trying to update it to .NET 4.5. The pre-release we were on doesn't work with .net 4.5, so we're...
View ArticleNew Post: Composing/Ignoring different parts based on context
Hello, We currently use MEF like this: Machine A:Server.exeServerOnlyStuff.dllMEF.Extension1.Server.dll Extension1.Shared.dll Machine B:Client.exeClientOnlyStuff.dllMEF.Extension1.Client.dll...
View ArticleNew Post: How to build Hierarchical ViewModel using MEF
Hi, I've been trying to build hierarchical view model for the purpose of using WPF Treeview in my application but no success. I use Prism+MEF as framework for my application and I tried very hard to...
View ArticleNew Post: How to build Hierarchical ViewModel using MEF
What exactly are you looking for? Do you want the tabs in the UI to be plugins?
View ArticleNew Post: How to build Hierarchical ViewModel using MEF
Based On that sample how can I build the hierarchy of the View Models for example in the LoadOnDemand tree how to build CountryViewModel which wrap the RegionViewModel which wrap the StateViewModel ......
View ArticleNew Post: How to build Hierarchical ViewModel using MEF
at least could anybody implement the following two classes using MEF and I will follow up for rest of the samplepublic class CountryViewModel { readonly ReadOnlyCollection<RegionViewModel>...
View ArticleNew Post: Is there a way to tell if MEF created a instace for a Type I exported
My goal is to find any of my viewmodels that are dirty and when they exit the app , I should let them notify. I can get to an instance based on type by below code but problem is its going to create...
View ArticleCreated Unassigned: AtomicComposition encountered an unexpected Exception...
Getting the following error occasionallyProcessEntry() failed. InvalidOperationException: AtomicComposition encountered an unexpected Exception, review InnerException for details.Stack Trace: at...
View ArticleCreated Unassigned: AmbiguousMatchException when resolving a class with...
Hi,To reproduce this problem, consider the following class:``` C#public class Test{ public void Execute() { } public void Execute<T>() { }}```The following code will fail with an...
View ArticleCreated Unassigned: Bug in Open Generics with IBiz [14615]
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 = new...
View ArticleNew Post: Alternative to icons in ExportMetadata
I have a project that uses the MEF to provide controls from plugins. In order to use display the controls from the plugin to the user I need to have also an icon associated with the control. Since...
View ArticleCreated Unassigned: Open Generic types won't register in the catalog on Test...
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. This...
View ArticleNew Comment on "Standalone Web API dependency resolver using...
Doesn't work with Visual Studio 2013. Useless. Wasted a whole day. Tried MEF Contrib, ASP.NET WEBAPI Contrib, Kenny Tourder's solution, and pretty much all the other buggy attempts. I can't find a...
View ArticleCommented Unassigned: Performance issue in SmallSparseInitonlyArray [14611]
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.Format...
View ArticleCreated Unassigned: Global Container for MEF [14617]
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 where I...
View Article