Skip to content

Instantly share code, notes, and snippets.

@Budincsevity
Created May 16, 2015 16:30
Show Gist options
  • Save Budincsevity/ee2d3456ef7aed7f62f3 to your computer and use it in GitHub Desktop.
Save Budincsevity/ee2d3456ef7aed7f62f3 to your computer and use it in GitHub Desktop.
Send platform independent messages
var hubClient =
NotificationHubClient.CreateClientFromConnectionString("<connection string>", "<hub name>");
var expressions = new Dictionary<string, string>();
expressions.Add("message", "Hello");
//Send platform independent message to all devices
hubClient.SendTemplateNotificationAsync(expressions);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment