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
3
votes
1 answer

Give MAF plugin which run as separate process a custom name

I activate my plugin using MAF[Managed Add - In Framework] in a separate process. The problem is that it gives default name "AddInProcess32" to the each plugin which run as a separate process. Can i give a custom name to the process which MAF…
Novalis
  • 2,265
  • 6
  • 39
  • 63
3
votes
1 answer

Can IoC and the Managed AddIn Framework (System.AddIn) work together with isolated AppDomains?

If I use Managed AddIn Framework (System.AddIn) and set it up to use separate AppDomains, can I use a centralized IoC container that is in the primary/default AppDomain? Can the IoC container resolve across the AppDomains?
Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
3
votes
1 answer

Using async/await with the Managed Addin Framework

I have a system that uses System.AddIn (MAF) to host addins in separate processes. Inside the addins I would like to consume some code that leverages async and await. Since MAF uses remoting to communicate across processes and there is very little…
John Koerner
  • 37,428
  • 8
  • 84
  • 134
3
votes
2 answers

MAF vs. MEF vs. Prism

I was watching some tutorials for MEF or Prism with Silverlight but was also doing some MAF work (System.AddIn) on the side and thought that might work also. I see that Prism and MEF are pretty much the same thing but Prism having the event…
Ryan
  • 4,354
  • 2
  • 42
  • 78
3
votes
1 answer

Security Exception with Microsoft AddIn Framework (MAF) Callback using two AppDomains

I am having a permission problem with my application: I have a host application which runs in an full trusted app-domain. This host loads an AddIn via MAF framework and activates this Add-In in another App-Domain which has only Internet-Access. The…
3
votes
3 answers

C#, MAF, Unhandled Exception Management in separate AppDomain

Okay, so I have a MAF application which loads up each addin inside of a separate appdomain. This is working fantastic for what I need as it allows me to dynamically unload and reload my addins at runtime. The problem is, I need to be able to take…
Robert Petz
  • 2,718
  • 4
  • 23
  • 52
3
votes
1 answer

C# Source Code Examples that make use of System.Addin (MAF)?

Just like to see how others make use of MAF: What are to define as contracts? Using IoC and MAF together? How do addins communicate with each other? How does MAF help building a winforms application? ...
bo bo
  • 824
  • 1
  • 8
  • 11
2
votes
2 answers

Using System.Addin with Assembly generated in memory

I have an application where I have to provide on-the-fly extensibility to the user. You can think of it as a sort of calculation engine, with a lot of data and some math / numeric algorithms. I provide some static fields (the data) and methods (the…
user1139216
  • 109
  • 1
  • 8
2
votes
1 answer

Can "AddInProcess.exe has stopped working" be suppressed?

I am attempting to sandbox potentially malicious code by executing it within a MAF plugin launched in its own process: var x = token.Activate(new AddInProcess(), AddInSecurityLevel.Internet); This seems to work well except that when…
Timothy Pratley
  • 10,586
  • 3
  • 34
  • 63
2
votes
4 answers

Programming with MAF (and MEF) on Mono

I am currently working as an internship in a company who wants to make software for the linux platform. Since they are a .Net minded company, they want me to look into mono. I kinda have to look if it is stable for their applications and server…
Benjamin
  • 101
  • 1
  • 8
2
votes
0 answers

Fix ZOrder/clipping of process-isolated (via FrameworkElementAdapter) WPF controls

I have a wpf application which hosts a group of controls which are backed by another process via FrameworkElementAdapter. For some reason, these controls have a clipping / Z order issue that non-remoted controls don't seem to exhibit. The gridview…
Anthony
  • 286
  • 3
  • 11
2
votes
1 answer

MAF Security: How to prevent a "Man-in-the-Middle" Attack

i am using MAF to offer user / customers the possibility to enhance our software. The Add-In will run with limited permissions and can be potentially untrusted code for us as well as for the customer in case they bought the add-in form a 3rd party…
2
votes
1 answer

How do I use automapper with System.AddIn?

In the System.AddIn (aka MAF) pipeline adapters, there is a lot of manual copying of values from one DTO type to another - from HostView types to Pipeline Contract types and from Pipeline Contract types to AddIn view types (and back again). This…
Peter McEvoy
  • 2,816
  • 19
  • 24
2
votes
0 answers

Passing user credentials/user account when activating plugin with MAF

We are using MAF to load external plugins and activate them as new processes. The host process is a Windows Service that runs under user account svc-host. Is there any possibility to activate a plugin in a separate process but running under another…
Olek
  • 676
  • 7
  • 11
2
votes
1 answer

MAF. Call from add-in side

I'm developing an application that provides plugins. I'm using Managed Add-In Framework for my aim. Is there a way to call host's method from add-in?
Ivan
  • 29
  • 2
1
2
3
8 9