Questions tagged [maf]

Microsoft's Managed Add-in Framework (MAF), sometimes called System.Addin, contains types to identify, register, activate, and control add-ins, and to allow add-ins to communicate with a host application. It is a part of the Microsoft .NET Framework since .NET 3.5.

Managed Add-in Framework

The Managed Add-in Framework, often abbreviated as MAF was introduced in .NET 3.5 to provide a programming model which developers may use to develop and utilize add-ins in their own applications.

Through the use of an add-in (aka communication) pipeline, add-in hosts and add-ins are abstracted from each-other, providing the necessary isolation and independent versioning of the add-ins and the host.

All of the types required for an application or library to utilize MAF are located within the System.Addin namespace.

Further Reading

123 questions
168
votes
7 answers

Choosing between MEF and MAF (System.AddIn)

The Managed Extensibility Framework (MEF) and Managed AddIn Framework (MAF, aka System.AddIn) seem to accomplish very similar tasks. According to this Stack Overflow question, Is MEF a replacement for System.Addin?, you can even use both at the same…
dthrasher
  • 40,656
  • 34
  • 113
  • 139
60
votes
5 answers

Looking for a practical approach to sandboxing .NET plugins

I am looking for a simple and secure way to access plugins from a .NET application. Although I imagine that this is a very common requirement, I am struggling to find anything that meets all my needs: The host application will discover and load its…
Tim Coulter
  • 8,705
  • 11
  • 64
  • 95
25
votes
1 answer

Broken tab navigation in popup with WPF user control hosted inside Winforms in default AppDomain

I have a WPF user control that uses a Popup. This control is a plugin and can be loaded in the main AppDomain or in a separate AppDomain, and it is hosted in a Winforms form using ElementHost. When the plugin is loaded in the main AppDomain, and the…
lordjeb
  • 1,286
  • 9
  • 14
10
votes
2 answers

iOS iPad Mini / iPhone: "Unable to Install Please try again later

I have an .ipa file, which is the output of the deployment of my application using distribution profile. When I try to install in any new ios device say IPad Mini(using Itunes), installation is happening till 75% after it's showing Unable to…
cpp_learner
  • 362
  • 2
  • 4
  • 14
9
votes
1 answer

Is it possible to load an .net 4.0 application inside a .net 3.5 application using containers?

Is it possible to load an .net 4.0 application inside .net 3.5 application using containers such as MEF or MAF? I'm aware of the fact that only backward compatibility is supported in.net, will that make any difference in containers?
Prince Ashitaka
  • 8,623
  • 12
  • 48
  • 71
8
votes
1 answer

Proper way to load assemblies with MAF

I have a program with a plugin based architecture using the Managed Add-In Framework (MAF). I am trying to load my Add-In assemblies in a way where they run in their own process and I can specify where they should look for other assemblies to load.…
Brian
  • 1,397
  • 9
  • 33
  • 51
7
votes
1 answer

Is Managed Addin Framework alive

I need to implement solution with add-ins executed in their AppDomain. I came across MAF, which is - by description - what I needed. However the documentaion and its CodePlex project seems to be a bit outdated, some pages in docs do not exist for…
eXavier
  • 4,821
  • 4
  • 35
  • 57
7
votes
2 answers

Dispose of AddIns created using MAF (System.AddIn)

Does anyone know how to dispose of AddIns created using System.AddIn. All the examples online seem to show how to easily load and use an addin, but none show how to dispose of them once they're alive. My Problem is I create addins in new processes,…
Anish Patel
  • 705
  • 3
  • 8
  • 19
6
votes
1 answer

How to specify AddIn process names?

I am using the Microsoft AddIn Framework to load AddIn assemblies. I am running them in their own process as to separate them from the service. The thing I don't like it that every AddIn process shows up as AddInProcess32.exe in the task manager. …
Brian
  • 1,397
  • 9
  • 33
  • 51
6
votes
2 answers

How to Plugin Web Pages dynamically in ASP .NET (and update the plugin)?

For regular assemblies one can use MEF to load assemblies dynamically. If a live update is required of those assemblies, the recommendation is to use AppDomains to host the dynamic assemblies (potentially one can use Managed Add-in Framework (MAF)).…
Mark
  • 5,223
  • 11
  • 51
  • 81
6
votes
1 answer

Caching MEF Components

Is there a way to cache MEF components graph per-application startup (WPF), like the MAF do to avoid discovering the directories and constructing the components graph every application startup. in order to speed up my application startup. MAF uses…
Henka Programmer
  • 727
  • 7
  • 25
5
votes
2 answers

Microsoft Add-in Framework vs OSGi?

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 first glance.
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272
4
votes
2 answers

Can AddIns in MAF (System.AddIn) have constructor parameters?

I need to pass configuration settings to an AddIn created using the Managed AddIn Framework (MAF, aka System.AddIn). Can a put a settings parameter in the AddIn's constructor? Another option would be to create an Initialize() method, but then I have…
dthrasher
  • 40,656
  • 34
  • 113
  • 139
4
votes
2 answers

What are the issues with running WPF across multiple AppDomains on one UI thread?

We are looking at creating a WPF UI that runs across multiple AppDomains. One of the app domains would run the application while the remaining AppDomains would host a series of user controls and logic. The idea, of course, is to sandbox these User…
Szymon Rozga
  • 17,971
  • 7
  • 53
  • 66
4
votes
0 answers

Linking DLL with external resource dependency based on MEF

I read both .net MEF (Managed Extensibility Framework) and MAF (System.AddIn) and I got confused by their online reviews. While MEF seems newer and more attractive than MAF. I can't understand how we can link an extension with .NET application using…
Alrehamy
  • 316
  • 3
  • 16
1
2 3
8 9