2

I currently have a worker role that is a SignalR .NET client. It connects to the SignalR hub, which is in the web role, like this:

 var connection = new HubConnection("http://localhost/");
 IHubProxy proxy = connection.CreateHubProxy("MyHub");
 connection.Start().Wait();

This works when run locally, but how would I go about getting the url dynamically so that it works on a development or staging server.

1 Answers1

0
  1. This should help to update app.config from power shell

How do I read/write App.config settings with PowerShell?

  1. If you don't have write access to app.config this Updates sep app.config file:

Update app.config system.net setting at runtime

Community
  • 1
  • 1