.NET Framework Bookmark and Share   
 index > Windows Communication Foundation > MCF and MEF
 

MCF and MEF

Hi,

Having had a quick look at MEF this week and quickly and painlessly creating a simple Plugin architecture I am now looking at how I can use this with WCF. To be clear I am hoping that its possible to use MEF to compose dynamic WCF services. Any ideas if this is possible?

Regards, Mark
mutable
Hi Mark,

Do you mean that MEF is Managed Extensibility Framework? If yes, I didn't use this framework. Let us discuss WCF development issue here. We can't give you much help about MEF development here.

You can have a look at self-host to host one WCF service in runtime to implement your requirement. To be able to self-host your services, you have to meet two requirements. First, you need the WCF runtime; second, you need a managed .NET application in which you can host ServiceHost. It is your own responsibility to write the code that starts and stops the host. Please read the following link for your reference:
http://msdn.microsoft.com/en-us/library/bb332338.aspx
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Riquel_Dong

You can use google to search for other answers

Custom Search

More Threads

• Unable to implement role based sercurity for WCF service
• urgent: security negotiation error
• The remote server returned an error: (401) Unauthorized. ---> System.ComponentModel.Win32Exception: The target principal name is incorrect
• DCAnnotationSurrogate or WsdlDocumentationImporter
• Parameter not being passed to WCF service running in Windows Service
• ERROR: Unable to build project output group 'Content Files from Adt.Kaon.Web (Active)'
• WCF and DataTypes
• visual studio 2008
• Role Provider Design Flaw - Commas and Certificates
• Problem metadata exposing