static void Events_OnChannelDestroyed(PushSharp.Common.PlatformType platformType, int newChannelCount) { Console.WriteLine("Channel Destroyed for: " + platformType.ToString() + " Channel Count: " + newChannelCount); }
void push_OnDeviceSubscriptionChanged(object sender, string oldSubscriptionId, string newSubscriptionId, PushSharp.Core.INotification notification) { //stopActions(); MessageBox.Show("push_OnDeviceSubscriptionChanged"); }
void push_OnNotificationFailed(object sender, PushSharp.Core.INotification notification, Exception error) { //stopActions(); MessageBox.Show("OnNotificationFailed : " + error); }
static void Events_OnNotificationSent(PushSharp.Common.Notification notification) { Console.WriteLine("Sent: " + notification.Platform + " -> " + notification); }
void push_OnChannelCreated(object sender, PushSharp.Core.IPushChannel pushChannel) { MessageBox.Show("push_OnChannelCreated"); }
static void Events_OnChannelException(Exception exception, PushSharp.Common.PlatformType platformType, PushSharp.Common.Notification notification) { Console.WriteLine("Channel Exception: " + platformType + " -> " + exception); }
static void Events_OnDeviceSubscriptionIdChanged(PushSharp.Common.PlatformType platform, string oldDeviceInfo, string newDeviceInfo, PushSharp.Common.Notification notification) { //Currently this event will only ever happen for Android GCM Console.WriteLine("Device Registration Changed: Old-> " + oldDeviceInfo + " New-> " + newDeviceInfo); }
void pusher_OnNotificationRequeue(object sender, PushSharp.Core.NotificationRequeueEventArgs e) { Console.WriteLine("pusher_OnNotificationRequeue"); }
void pusher_OnNotificationSent(object sender, PushSharp.Core.INotification notification) { Console.WriteLine("消息发送成功!"); //PersonalizeMessageBox.Show(this, "消息发送成功!", "系统提示"); }
void pusher_OnDeviceSubscriptionExpired(object sender, string expiredSubscriptionId, DateTime expirationDateUtc, PushSharp.Core.INotification notification) { Console.WriteLine("pusher_OnDeviceSubscriptionChanged"); }
void pusher_OnNotificationFailed(object sender, PushSharp.Core.INotification notification, Exception error) { Console.WriteLine("消息发送失败,错误详情:" + error.ToString()); //PersonalizeMessageBox.Show(this, "消息发送失败,错误详情:"+error.ToString(), "系统提示"); }
void pusher_OnDeviceSubscriptionChanged(object sender, string oldSubscriptionId, string newSubscriptionId, PushSharp.Core.INotification notification) { Console.WriteLine("pusher_OnDeviceSubscriptionChanged"); }
void pusher_OnChannelException(object sender, PushSharp.Core.IPushChannel pushChannel, Exception error) { Console.WriteLine("消息发送失败,错误详情:" + error.ToString()); // PersonalizeMessageBox.Show(this, "消息发送失败,错误详情:" + error.ToString(), "系统提示"); }
void pusher_OnChannelCreated(object sender, PushSharp.Core.IPushChannel pushChannel) { Console.WriteLine("pusher_OnChannelCreated"); }
private void NotificationSent(object sender, PushSharp.Core.INotification notification) { ILog log = LogManager.GetLogger(this.GetType()); log.Info("sent:"+notification); }
static void DeviceSubscriptionChanged(object sender, string oldSubscriptionId, string newSubscriptionId, PushSharp.Core.INotification notification) { //Currently this event will only ever happen for Android GCM // Console.WriteLine("Device Registration Changed: Old-> " + oldSubscriptionId + " New-> " + newSubscriptionId + " -> " + notification); }
private void NotificationFailed(object sender, PushSharp.Core.INotification notification, Exception error) { ILog log = LogManager.GetLogger(this.GetType()); log.Error(error); }
static void NotificationSent(object sender, PushSharp.Core.INotification notification) { //Console.WriteLine("Sent: " + sender + " -> " + notification); }
static void Events_OnDeviceSubscriptionExpired(PushSharp.Common.PlatformType platform, string deviceInfo, PushSharp.Common.Notification notification) { Console.WriteLine("Device Subscription Expired: " + platform + " -> " + deviceInfo); }
static void NotificationFailed(object sender, PushSharp.Core.INotification notification, Exception notificationFailureException) { // Console.WriteLine("Failure: " + sender + " -> " + notificationFailureException.Message + " -> " + notification); }
static void Events_OnNotificationSendFailure(PushSharp.Common.Notification notification, Exception notificationFailureException) { Console.WriteLine("Failure: " + notification.Platform + " -> " + notificationFailureException.Message + " -> " + notification); }
static void ChannelException(object sender, PushSharp.Core.IPushChannel channel, Exception exception) { // Console.WriteLine("Channel Exception: " + sender + " -> " + exception); }
static void Events_OnChannelCreated(PushSharp.Common.PlatformType platformType, int newChannelCount) { Console.WriteLine("Channel Created for: " + platformType + " Channel Count: " + newChannelCount); }
static void DeviceSubscriptionExpired(object sender, string expiredDeviceSubscriptionId, DateTime timestamp, PushSharp.Core.INotification notification) { // Console.WriteLine("Device Subscription Expired: " + sender + " -> " + expiredDeviceSubscriptionId); }
void push_OnChannelException(object sender, PushSharp.Core.IPushChannel pushChannel, Exception error) { //stopActions(); MessageBox.Show("OnChannelException : " + error); }
static void ChannelCreated(object sender, PushSharp.Core.IPushChannel pushChannel) { // Console.WriteLine("Channel Created for: " + sender); }
void push_OnDeviceSubscriptionExpired(object sender, string expiredSubscriptionId, DateTime expirationDateUtc, PushSharp.Core.INotification notification) { //stopActions(); MessageBox.Show("OnDeviceSubscriptionExpired : " + expiredSubscriptionId); }
private void ChannelException(object sender, PushSharp.Core.IPushChannel pushChannel, Exception error) { ILog log = LogManager.GetLogger(this.GetType()); log.Error(error); }
void push_OnNotificationSent(object sender, PushSharp.Core.INotification notification) { MessageBox.Show("push_OnNotificationSent"); }
static void Broker_OnNotificationSent(object sender, PushSharp.Core.INotification notification) { }