Property Injection with MEF fails in Controller in separate project.

Vote:
 

I'm trying to use the MEF Import and Export attributes to get property injection working.

It seems to work ok from a controller within the main project, but when I do the same in referenced project the injection never happens.

SatisfyImportsOnce seems to be called for all constructed controllers, so I can't see why it fails.

 

Any ideas?

#59397
Jun 05, 2012 14:25
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.