Last post Apr 15, 2014 04:26 AM by Illeris
Apr 13, 2014 07:35 AM|Alex9|LINK
What is the best way (and why?) for configuration - realize it in logic code or in configuration file using xml ?
Apr 13, 2014 08:25 AM|mike4u|LINK
hey want to get config of something??
Apr 13, 2014 09:42 AM|Alex9|LINK
Start configuration of WCF service.
Apr 13, 2014 09:44 AM|mike4u|LINK
looking for this:
Apr 13, 2014 11:46 AM|Alex9|LINK
I readed about it. But I dont understand what way to configure is the best approach and most widely used.
Apr 15, 2014 12:49 AM|Fuxiang Zhang - MSFT|LINK
Thank you post the issue to asp.net forum.
When developing a WCF service, we can set the necessary information with coressponding class object.
Also so we can set that information in a configure file. Personly, I think we would better save the object property in the configure file.
Configuring a Windows Communication Foundation (WCF) service with a configuration file gives you the flexibility of providing endpoint
and service behavior data at the point of deployment instead of at design time. A WCF service is configurable using the .NET Framework configuration technology.
Most commonly, XML elements are added to the Web.config file for an Internet Information Services (IIS) site that hosts a WCF service.
There is a tools for editing wcf configuration SvcConfigEditor.exe, Service Configuration Editor comes with a wizard that guides you through all the steps
in configuring a WCF service or client. You are strongly advised to use the wizard instead of the editor directly.
Hope that helps, thanks.
Apr 15, 2014 04:26 AM|Illeris|LINK
There is no best way. If you think you should change the config settings one day, you better put it in a config file. It allows modifications without a rebuild of your code.