سؤال

Is it possible to have one add-in pipeline (MEF) but depending on the add-in class type perform different functionality?

Example: if I have add-ins for reporting (with each add-in performing a specialized reporting function) and add-ins for Calculation (with each add-in performing different calculations for a different part of the application), is there a way to set this up in one pipeline? Or do i have to setup an individual pipeline for each function that I want add-ins supported for?

هل كانت مفيدة؟

المحلول

you should really look at the MEF documentation and yes you can have multiple add-in with one pipeline(composition). look for examples with the MEF [ImportMany] attribute.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top