Skip to content

Instantly share code, notes, and snippets.

@davidfowl
Last active December 14, 2015 17:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidfowl/5123364 to your computer and use it in GitHub Desktop.
Save davidfowl/5123364 to your computer and use it in GitHub Desktop.
Future of filtering in SignalR
public class MyHub : Hub
{
public Task SendToQuery(string query, string value)
{
// Call the send to everybody that has the specified query string value
return Clients.Query(c => c.QueryString[query] == value).send();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment