Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added QueryString to hub context.

  • Loading branch information...
commit ef6baff6fa322a8c0e65220e8810e957e5f61e9c 1 parent 076f4ca
David Fowler davidfowl authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 SignalR/Hubs/HubContext.cs
6 SignalR/Hubs/HubContext.cs
View
@@ -21,6 +21,11 @@ public class HubContext
/// </summary>
public NameValueCollection Headers { get; private set; }
+ /// <summary>
+ /// Gets the querystring for the request
+ /// </summary>
+ public NameValueCollection QueryString { get; private set; }
+
public IPrincipal User { get; private set; }
public HubContext(HostContext context, string connectionId)
@@ -28,6 +33,7 @@ public HubContext(HostContext context, string connectionId)
ConnectionId = connectionId;
Cookies = context.Request.Cookies;
Headers = context.Request.Headers;
+ QueryString = context.Request.QueryString;
User = context.User;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.