Skip to content

Instantly share code, notes, and snippets.

@arc95

arc95/notify.cs Secret

Last active September 18, 2018 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arc95/e2ba51ffdea8a6ad08e846650cb5fdf9 to your computer and use it in GitHub Desktop.
Save arc95/e2ba51ffdea8a6ad08e846650cb5fdf9 to your computer and use it in GitHub Desktop.
private static async Task NotifyClientsCommentAdded(string result)
{
var context = Microsoft.AspNet.SignalR
.GlobalHost.ConnectionManager.GetHubContext<RealtimeHub>();
// Clients and All are both of type "dynamic"
await context.Clients.All.handleCommentAdded(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment