Created
November 23, 2020 19:42
-
-
Save YuriyZaletskyy/9695027bf9243bdda3361bb61cefcd9c to your computer and use it in GitHub Desktop.
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
myHub.On<NotificationResult>("ReceiveNotification", nr => | |
{ | |
if (nr.Inserted.Length > 0 && nr.Deleted.Length > 0) | |
{ | |
MessageBox.Show("Before update " + JsonConvert.DeserializeObject(nr.Deleted[0].ToString())); | |
MessageBox.Show("After update " + JsonConvert.DeserializeObject(nr.Inserted[0].ToString())); | |
} | |
else | |
{ | |
if (nr.Inserted.Length > 0) | |
MessageBox.Show("Inserted " + JsonConvert.DeserializeObject(nr.Inserted[0].ToString())); | |
if (nr.Deleted.Length > 0) | |
MessageBox.Show("Deleted " + JsonConvert.DeserializeObject(nr.Deleted[0].ToString())); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment