c# - How to set programmatically baseAddress for both client and server? -
currently baseaddress
fixed in app.config file both service , client
app.config both service , client
<host> <baseaddresses> <add baseaddress="http://localhost:8080/service" /> </baseaddresses> </host>
is possible programmatically? like
baseaddress = txtbaseaddress.text;
or any?
you cannot update base address using servicehost readonly. have pass set of baseaddress servicehost constructor or have use configuration file.
please refer following links
Comments
Post a Comment