Click here to Skip to main content
15,886,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All ,

Could you please let me know , how to write a WCF service that should act as a client too if required. I have some idea that in App.config file we can have a client and service sections for making service to acts a client if required.

Could you please provide me an example code for that in C# and WCF for that.


Thanks
Sudhakar
Posted
Comments
Afzaal Ahmad Zeeshan 2-Jan-15 6:07am    
You can create 2 different templates for the same application, and make it act as either one in the run-time. The web.config properties are also available in Code-Behind classes so that you can make sure that you're well in work while you're editing these properties on the runtime.
Member 3975629 2-Jan-15 7:06am    
could you please give me an windows desktop example that uses App.config

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900