mef Questions

2

Solved

What does [PartCreationPolicy(CreationPolicy.Shared)] mean?
Oringas asked 23/9, 2012 at 23:6

2

Solved

Object browser in Visual Studio 2012 offers two different component sets for Portable class libraries: .NET Portable Subset .NET Portable Subset (Legacy) When I create Portable Class Library it...
Harper asked 18/9, 2012 at 19:47

1

Solved

I am just learning WPF and Caliburn.Micro. I am following the code that presented here: http://caliburnmicro.codeplex.com/wikipage?title=Customizing%20The%20Bootstrapper&referringTitle=Document...
Pencel asked 20/9, 2012 at 12:26

1

Solved

I have portable class library targeted to .NET 4.5 and Windows Store App. According to MSDN this setting should offer MEF but it does not. Namespace System.ComponentModel.Composition is not availab...

3

Solved

I'm starting a new personal Prism 4 project. The Reference Implementation currently uses Unity. I'd like to know if I should use MEF instead, or just keep to Unity. I know a few discussions have ...
Hemipterous asked 26/10, 2010 at 5:33

4

Solved

The recently announced managed extensibility framework (MEF) of .NET 4.0 - is it a dependency injection framework? Will Microsoft Unity from Patterns and Practices be obsolete in 4.0 ? How does MEF...
Tindle asked 15/11, 2008 at 21:6

2

Solved

We were using MEF Contrib open generics support like this: [InheritedExport] interface ITest2<T> { void Execute(); } class TestClass2<T> : ITest2<T> { public void Execute() {...
Fusible asked 20/8, 2012 at 8:56

1

Solved

I am currently figuring out how to restructure the architecture of an existing not very modular ASP.NET MVC 3.0 application. I have a plugin like structure in mind to make the existing project exte...

1

I have a prism 4 application using an MEF bootstrapper. I have implemented a splash screen from the bootstrapper and want to provide the user with module info (as they are loaded) while the module ...
Apterygial asked 20/6, 2011 at 14:43

1

Solved

I'm trying to load plugins at runtime and access their configuration files. The configuration sections in their config files are mapped to classes derived from ConfigurationElementCollection, Confi...
Badmouth asked 14/8, 2012 at 14:18

2

Solved

I've got a number of classes which implement IDessertPlugin. These are found in various DLLs which I use MEF to spin up instances of them to use as plug-in functionality in my application. So what...
Triliteral asked 7/8, 2012 at 15:2

1

Solved

Are there any configuration file settings for MEF, or is everything done in code? If everything is in code, what are some best practices for switching between different classes that do exports? i....
Apthorp asked 20/7, 2012 at 19:12

3

Solved

I'm using MEF to allow users to extend my C# library. It's working great so far, but right now I'm trying to use it in a way I haven't seen it used before. The primary use case for MEF I've seen s...
Wilburwilburn asked 25/6, 2012 at 20:0

2

After doing some research on MEF I came across the CreationPolicy.Shared property which according to MSDN: Specifies that a single shared instance of the associated ComposablePart will be crea...
Roulade asked 15/6, 2012 at 18:15

4

Solved

I work with MEF and I am looking how to change the url of the location of plugins by another means that MEF find the plugins, I want to change this line Assembly.LoadFrom(@"C:\julia\project\proje...
Supervision asked 11/6, 2012 at 20:18

1

Solved

I don't understand MEF very well, so hopefully this is a simple fix of how I think it works. I'm trying to use MEF to get some information about a class and how it should be used. I'm using the Me...
Dramaturge asked 11/6, 2012 at 22:38

2

Solved

In my Prism app, the MEF container is available from within the Bootstrapper class via the Container property. But it isn't from within the class module (IModule). I may only import the container ...
Milano asked 30/5, 2012 at 11:2

2

How does MAF compare to OSGi? MAF is not something that I could find easily, and I am wandering why people don't recommend it as much as, say, MEF? It seems to be similar to OSGi, at least from my...
Autarch asked 25/5, 2012 at 17:4

3

Solved

I'm learning MEF and I wanted to create a simple example (application) to see how it works in action. Thus I thought of a simple translator. I created a solution with four projects (DLL files): Co...
Gallinaceous asked 22/5, 2012 at 10:37

2

Solved

I have an import MEF component which is dynamically loaded when the import wizard opens. As soon as the user selects the type of import she wants to process, the control over the import wizard dial...
Analcite asked 10/5, 2012 at 8:59

1

I've got an app that is a shell with a bunch of MEF parts. While the user could add new MEF parts in some special locations in their file system, the app itself needs to deploy with about 5 or 6 of...
Dannie asked 31/10, 2011 at 12:5

1

Solved

I have an abstract base class, and a derived class. I'm trying to use MEF to inject a reference to to my WindowManager, by using [ImportingConstructor], in the base class. ie. [ImportingConstructo...
Lisa asked 20/4, 2012 at 7:58

2

Solved

I have 2 assemblies: Assembly 1: interface IWeapon { int Might { get; } } [Export("sword")] public class Sword : IWeapon { public int Might { get { return 10; } } } Assembly 2: interf...
Ossuary asked 17/7, 2009 at 0:29

2

Solved

I'd like to create an extension to Visual Studio that will allow someone to select any text in an editor, right-click to get a context menu, and then perform some action on the text by clicking on ...
Winchester asked 5/6, 2011 at 1:53

2

Solved

I'm exporting some classes implementing the IFoo interface like this public interface IFoo { } [Export("A", typeof(IFoo))] public class Foo1 : IFoo { } [Export("B", typeof(IFoo))] public class F...
Calefactory asked 9/3, 2012 at 17:19

© 2022 - 2024 — McMap. All rights reserved.