Вопрос

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