Example #1
0
 static void Events_OnNotificationSent(PushSharp.Common.Notification notification)
 {
     Console.WriteLine("Sent: " + notification.Platform.ToString() + " -> " + notification.ToString());
 }
Example #2
0
 static void Events_OnNotificationSendFailure(PushSharp.Common.Notification notification, Exception notificationFailureException)
 {
     Console.WriteLine("Failure: " + notification.Platform.ToString() + " -> " + notificationFailureException.Message + " -> " + notification.ToString());
 }
Example #3
0
 static void Events_OnDeviceSubscriptionExpired(PushSharp.Common.PlatformType platform, string deviceInfo, PushSharp.Common.Notification notification)
 {
     Console.WriteLine("Device Subscription Expired: " + platform.ToString() + " -> " + deviceInfo);
 }
Example #4
0
 static void Events_OnChannelException(Exception exception, PushSharp.Common.PlatformType platformType, PushSharp.Common.Notification notification)
 {
     Console.WriteLine("Channel Exception: " + platformType.ToString() + " -> " + exception.ToString());
 }
Example #5
0
 static void Events_OnChannelDestroyed(PushSharp.Common.PlatformType platformType, int newChannelCount)
 {
     Console.WriteLine("Channel Destroyed for: " + platformType.ToString() + " Channel Count: " + newChannelCount);
 }
 static void Broker_OnChannelException(object sender, PushSharp.Core.IPushChannel pushChannel, Exception error)
 {
     ErrorDatabaseManager.AddException(error, sender.GetType(), additionalInformation: pushChannel.ToString() + sender.ToString());
 }