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

  1. msdn

  2. msdn blog


Comments

Popular posts from this blog

objective c - Can't build GCM with Protobuf in Xcode -

Winapi c++: DialogBox hangs when breaking a loop -

How to use function view in Drupal -