static void Events_OnNotificationSent(PushSharp.Common.Notification notification) { Console.WriteLine("Sent: " + notification.Platform.ToString() + " -> " + notification.ToString()); }
static void Events_OnNotificationSendFailure(PushSharp.Common.Notification notification, Exception notificationFailureException) { Console.WriteLine("Failure: " + notification.Platform.ToString() + " -> " + notificationFailureException.Message + " -> " + notification.ToString()); }
static void Events_OnDeviceSubscriptionExpired(PushSharp.Common.PlatformType platform, string deviceInfo, PushSharp.Common.Notification notification) { Console.WriteLine("Device Subscription Expired: " + platform.ToString() + " -> " + deviceInfo); }
static void Events_OnChannelException(Exception exception, PushSharp.Common.PlatformType platformType, PushSharp.Common.Notification notification) { Console.WriteLine("Channel Exception: " + platformType.ToString() + " -> " + exception.ToString()); }
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()); }