Intercept object creation

Sep 23, 2009 at 4: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...

 

 

 

 

Developer
Sep 23, 2009 at 9:14 PM
Edited Sep 23, 2009 at 10:20 PM

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