c# - Dynamically switch WCF Web Service Reference URL path through config file -


how dynamically switch wcf web service reference url path through config file ?

are wanting override url in config different url. have test service , live service. can this.

client.endpoint.address = new endpointaddress(server.isliveserver() ?     @"liveurl" : @"testurl");  

where url come wherever want


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -