Skip to content

Instantly share code, notes, and snippets.

@sethwebster
Created December 12, 2011 06:26
Show Gist options
  • Save sethwebster/1465388 to your computer and use it in GitHub Desktop.
Save sethwebster/1465388 to your computer and use it in GitHub Desktop.
// Run this on another thread since the signalr client doesn't like it
// when we spend a long time processing messages synchronously
Task.Factory.StartNew(() =>
{
string content = message.Content;
string name = message.User.Name;
// Ignore replies from self
if (name.Equals(Name, StringComparison.OrdinalIgnoreCase))
{
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment