Querystring
If a querystring is passed in with the connection (or the handshake) the server will parse the querystring so that you can access the values on the server-side.
You have already seen this in the examples when we used Putty to connect and passed in a PersistentId with the handshake.
PuttyProtocol?PersistentId=3639cbcf-5ea4-4ee6-bf9f-0aa751883c25
Get a querystring value
We just check if there is a parameter with the key foo
. if so we extract the parameter with the GetParameter
method.
if (this.HasParameterKey("foo"))
{
var fooValue = this.GetParameter("foo");
}