This project has moved. For the latest updates, please go here.

Intercept object creation

Sep 23, 2009 at 3:51 PM

Hi all, i am new to MEF.

Are there way to intervene in the object creation "pipeline" like the following:

MEF looks for implementor of X -> I create one for MEF based on external logic, but MEF processed the imports of the provided type (instance).

After MEF resolved my object, do some custom processing on the instance...





Sep 23, 2009 at 8:14 PM
Edited Sep 23, 2009 at 9:20 PM

There isn't any built in support for such behavior but it is theoretically possible if you write your own custom Type.