I am developing real-time network application using SignalR. I have Web and Windows Form clients. I am using QueryString to pass the parameter "param" from Web App client to server using this javascript:
$(function () {
//Set the hubs URL for the connection
$.connection.hub.url = "http://localhost:8089/signalr";
// Declare a proxy to reference the hub. Declare queryString param
$.connection.hub.qs = "param" + urlParams['param'];
$.connection.hub.start();
...
On server side i am using:
public override Task OnConnected()
{
var queryStr = Context.QueryString["param"];
if (queryStr == value )
DoSmth();
else DoSmth2();
}
I need to pass parameter "param" using QueryString from Windows Form App. I need something like : $.connection.hub.qs = "param" + urlParams['param']; but for Windows Form app. How to do it?