MEF and WCF

Jul 23, 2010 at 12:12 PM

Hi,

I am wondering if the Exports can also handly the ServiceContracts in WCF.

Will something like this work: ??

 

    [Export(typeof(ISomeServiceContract))]
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
    public class Someservice: ISomeServiceContract
    {....

 

 

thx

Jens