문제

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