MEF - Modify execution if one plugin fails

Posted by alexn on Stack Overflow See other posts from Stack Overflow or by alexn
Published on 2010-03-14T08:04:02Z Indexed on 2010/03/14 8:15 UTC
Read the original article Hit count: 295

Filed under:
|
|

Hi!

I'm using MEF for a plugin-system to my application. The flow goes like this:

  1. Run all Pre-plugins
  2. Run all Core-plugins
  3. Run all Post-plugins

For example, if a plugin in the Core execution fails, i don't want to run certain post plugins.

What would be the best way to achieve this? Hope my question is clear, otherwise please tell me and i'll try to elaborate.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .net-3.5