Skip to content

Instantly share code, notes, and snippets.

@wsrzx
Created June 12, 2018 10:54
Show Gist options
  • Save wsrzx/26357f33c9886460f8286f13c28389db to your computer and use it in GitHub Desktop.
Save wsrzx/26357f33c9886460f8286f13c28389db to your computer and use it in GitHub Desktop.
Atualização de tags no Azure Notification Hubs
//https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.notificationhubs.partialupdateoperation?view=azure-dotnet
var partialUpdates = new List<PartialUpdateOperation>();
PartialUpdateOperation replaceTag = new PartialUpdateOperation();
replaceTag.Operation = UpdateOperationType.Replace;
replaceTag.Path = "/tags/coxinha";
replaceTag.Value = "kibe";
partialUpdates.Add(replaceTag);
notificationHubClient.PatchInstallation(installationId, partialUpdates);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment