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.
 
     
    