Has anyone worked much with Microsoft's Managed Extensibility Framework (MEF)? Kinda sounds like it's trying to be all things to all people - It's an add-in manager! It's duck typing! I'm wondering if anyone has an experience with it, positive or negative.
We're currently planning on using an generic IoC implementation ala MvcContrib fo...
What problems does MEF (Managed Extensibility Framework) solves that cannot be solved by existing IoC/DI containers?
...
Is the Managed Extensibility Framework a replacement for System.Addin? Or are they complementary?
...
The MEF team keep saying it is about plug-in model. So, are we talking about UI plugins? How can we use this stuff in non-UI code?
I downloaded the code and the examples are all about GUI. Am I guessing it wrong?
...
There seems to have been some interest over the past year around COP within the .NET community (ala Qi4j). A few folks have rolled there own COP frameworks (see links below) and it would appear .NET 4.0's Dynamic Dispatch and MEF might have a potential role in any .NET COP framework.
On one hand a lot of this would appear to hark back ...
In my MEF usage, I have a bunch of imports that I want to make available in many other parts of my code. Something like:
[Export (typeof (IBarProvider))]
class MyBarFactory : IBarPovider
{
[Import]
public IFoo1Service IFoo1Service { get; set; }
[Import]
public IFoo2Service IFoo2Service { get; set; }
[Import]
public IFoo3Service ...
==Update==
I have found a solution and I blogged about it here: link
However I'd be more than happy if someone came up with a better one.**
Using MEF I want to do the following.
I have a WPF Shell. To the shell I want to Import from another DLL a UserControl that is also a View of my MVP triad.
The way the MVP triad works, is that in...
I'm looking for suggestions about how can I build an extensible WCF server (with dynamically loaded services), preferably using System.Addins or MEF.
The server should host any WCF service (contained in DLL assemblies, loaded in runtime) that implements a minimal "plugin" API (StartService/StopService/GetStatus?/etc).
This post is a go...
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 compare to a framework like Unity?
...
I see parallels between MEF and Lua. Both allow you to register methods and deploy as you need. Are both MEF and Lua forms of IoC / Dependency Injection?
...
I've made a very simple MEF sample which runs on .NET,
but doesn't work properly on Mono.
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.Composition;
namespace Vialis
{
class Program
{
[Import(typeof(ILedController))]
public List<ILedController> Controllers
...
Edit: Matt, that does indeed solves some (most) of my problems, thank you. Now the only lingering issue of how do I do this in WPF? I have a custom part based off of a UserControl but there is no way in WPF to do :
[Import]<my:SomeCustomControl>
so the cascade doesn't work in this instance.
/Edit
I am having an issue [Import]ing...
I have the following problem with MEF:
Interface definition to be used by host:
Public Interface IExecuteDoSomething
Inherits IAddinSettings
Event DataReceived As EventHandler(Of DataReceivedEventArgs)
Function DoSomething() As Boolean
End Interface
Public Class DataReceivedEventArgs
Inherits EventArgs
Public Sub New...
I have a winforms App that uses different tabs. I would like to use MEF to be able to add more tabs that are imported at startup. I am having a hard time figuring out how to go about doing this.
Edit:
Here is what I did.
I took the main winforms class and striped it down so that there is only a TabControl in it which I expose to eac...
I'm just trying to get my head around the Managed Extensibility Framework (MEF) at the moment and digging into a bit. I have an Eclipse background so in my brain I currently have the equation:
MEF =~ OSGi for .NET
Based on what I have heard so far. Am I on the right lines?
...
Many simple MEF examples (listed below) uses AttributedAssemblyPartCatalog.
Hosting MEF in an application on CodePlex MEF page
Simple Introduction to Extensible Applications with the Managed Extensions Framework by Brad Adams
Managed Extensibility Framework Tutorial - MEF by David Hayden
I have downloaded MEF source from CodePlex but...
I used MEF in own of my projects and I liked it a lot. It was easy and after figuring our awkward API model, it just worked.
Now I need something like that for .NET Framework 2.0. Is there any similar project out there which can work under .NET Framework 2.0?
I'm simply looking for adding plug-in support to my project in a simple way.
...
I am trying to find out if anyone has any experience or ideas of using MEF (Managed Extensible Framework (Microsoft's new plugin framework) with ASP.NET MVC. I need to create a standard ASP.NET MVC, which I have. But I need to offer additional functionality i.e. Views and Controllers, etc, depending on if I add a plugin. It doesn't need ...
I've got an application with 2 main components + other DLLs:
Core DLL (got all core functionality)
GUI
3rd Party and Totally Independent DLLs which requires for DI etc.
Now I'm implementing plugin support.
Which DLL should be responsible from loading these plugins? GUI or the Core DLL?
I'm using MEF so not quite sure where to sti...
When organizing a project where should I put the provider interfaces which are used in MEF? Currently I just have them in the same project as everything else but it seems like it might desirable for me to extract them into a separate dll such that it was a very small dll and would easily be linked to by others attempting to write extens...