Defining endpoints programmatically in WCF is a good practice or not ?

 Posted by Akiii on 4/12/2012 | Category: WCF Interview questions | Views: 3045 | Points: 40

Even though defining endpoints programmatically is possible, the most common approach
today is to use a configuration file associated with the service. Endpoint definitions embedded in code are difficult to change when a service is deployed, yet some endpoint characteristics, such as the address, are very likely to differ in different deployments. Defining endpoints in config files makes them easier to change, since changes don?t require modifying and recompiling the source code for the service class.

Thanks an Regards

| Alert Moderator 

Comments or Responses

Login to post response