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
Post a Comment