Last active
December 14, 2015 17:38
-
-
Save davidfowl/5123364 to your computer and use it in GitHub Desktop.
Future of filtering in SignalR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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