Ejemplo n.º 1
0
 static void Events_OnChannelDestroyed(PushSharp.Common.PlatformType platformType, int newChannelCount)
 {
     Console.WriteLine("Channel Destroyed for: " + platformType.ToString() + " Channel Count: " + newChannelCount);
 }
Ejemplo n.º 2
0
 void push_OnDeviceSubscriptionChanged(object sender, string oldSubscriptionId, string newSubscriptionId, PushSharp.Core.INotification notification)
 {
     //stopActions();
     MessageBox.Show("push_OnDeviceSubscriptionChanged");
 }
Ejemplo n.º 3
0
 void push_OnNotificationFailed(object sender, PushSharp.Core.INotification notification, Exception error)
 {
     //stopActions();
     MessageBox.Show("OnNotificationFailed : " + error);
 }
Ejemplo n.º 4
0
 static void Events_OnNotificationSent(PushSharp.Common.Notification notification)
 {
     Console.WriteLine("Sent: " + notification.Platform + " -> " + notification);
 }
Ejemplo n.º 5
0
 void push_OnChannelCreated(object sender, PushSharp.Core.IPushChannel pushChannel)
 {
     MessageBox.Show("push_OnChannelCreated");
 }
Ejemplo n.º 6
0
 static void Events_OnChannelException(Exception exception, PushSharp.Common.PlatformType platformType, PushSharp.Common.Notification notification)
 {
     Console.WriteLine("Channel Exception: " + platformType + " -> " + exception);
 }
Ejemplo n.º 7
0
 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);
 }
Ejemplo n.º 8
0
 void pusher_OnNotificationRequeue(object sender, PushSharp.Core.NotificationRequeueEventArgs e)
 {
     Console.WriteLine("pusher_OnNotificationRequeue");
 }
Ejemplo n.º 9
0
 void pusher_OnNotificationSent(object sender, PushSharp.Core.INotification notification)
 {
     Console.WriteLine("消息发送成功!");
     //PersonalizeMessageBox.Show(this, "消息发送成功!", "系统提示");
 }
Ejemplo n.º 10
0
 void pusher_OnDeviceSubscriptionExpired(object sender, string expiredSubscriptionId, DateTime expirationDateUtc, PushSharp.Core.INotification notification)
 {
     Console.WriteLine("pusher_OnDeviceSubscriptionChanged");
 }
Ejemplo n.º 11
0
 void pusher_OnNotificationFailed(object sender, PushSharp.Core.INotification notification, Exception error)
 {
     Console.WriteLine("消息发送失败,错误详情:" + error.ToString());
     //PersonalizeMessageBox.Show(this, "消息发送失败,错误详情:"+error.ToString(), "系统提示");
 }
Ejemplo n.º 12
0
 void pusher_OnDeviceSubscriptionChanged(object sender, string oldSubscriptionId, string newSubscriptionId, PushSharp.Core.INotification notification)
 {
     Console.WriteLine("pusher_OnDeviceSubscriptionChanged");
 }
Ejemplo n.º 13
0
 void pusher_OnChannelException(object sender, PushSharp.Core.IPushChannel pushChannel, Exception error)
 {
     Console.WriteLine("消息发送失败,错误详情:" + error.ToString());
     // PersonalizeMessageBox.Show(this, "消息发送失败,错误详情:" + error.ToString(), "系统提示");
 }
Ejemplo n.º 14
0
 void pusher_OnChannelCreated(object sender, PushSharp.Core.IPushChannel pushChannel)
 {
     Console.WriteLine("pusher_OnChannelCreated");
 }
Ejemplo n.º 15
0
 private void NotificationSent(object sender, PushSharp.Core.INotification notification)
 {
     ILog log = LogManager.GetLogger(this.GetType());
     log.Info("sent:"+notification);
 }
Ejemplo n.º 16
0
 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);
 }
Ejemplo n.º 17
0
 private void NotificationFailed(object sender, PushSharp.Core.INotification notification, Exception error)
 {
     ILog log = LogManager.GetLogger(this.GetType());
     log.Error(error);
 }
Ejemplo n.º 18
0
 static void NotificationSent(object sender, PushSharp.Core.INotification notification)
 {
     //Console.WriteLine("Sent: " + sender + " -> " + notification);
 }
Ejemplo n.º 19
0
 static void Events_OnDeviceSubscriptionExpired(PushSharp.Common.PlatformType platform, string deviceInfo, PushSharp.Common.Notification notification)
 {
     Console.WriteLine("Device Subscription Expired: " + platform + " -> " + deviceInfo);
 }
Ejemplo n.º 20
0
 static void NotificationFailed(object sender, PushSharp.Core.INotification notification, Exception notificationFailureException)
 {
    // Console.WriteLine("Failure: " + sender + " -> " + notificationFailureException.Message + " -> " + notification);
 }
Ejemplo n.º 21
0
 static void Events_OnNotificationSendFailure(PushSharp.Common.Notification notification, Exception notificationFailureException)
 {
     Console.WriteLine("Failure: " + notification.Platform + " -> " + notificationFailureException.Message + " -> " + notification);
 }
Ejemplo n.º 22
0
 static void ChannelException(object sender, PushSharp.Core.IPushChannel channel, Exception exception)
 {
   //  Console.WriteLine("Channel Exception: " + sender + " -> " + exception);
 }
Ejemplo n.º 23
0
 static void Events_OnChannelCreated(PushSharp.Common.PlatformType platformType, int newChannelCount)
 {
     Console.WriteLine("Channel Created for: " + platformType + " Channel Count: " + newChannelCount);
 }
Ejemplo n.º 24
0
 static void DeviceSubscriptionExpired(object sender, string expiredDeviceSubscriptionId, DateTime timestamp, PushSharp.Core.INotification notification)
 {
   //  Console.WriteLine("Device Subscription Expired: " + sender + " -> " + expiredDeviceSubscriptionId);
 }
Ejemplo n.º 25
0
 void push_OnChannelException(object sender, PushSharp.Core.IPushChannel pushChannel, Exception error)
 {
     //stopActions();
     MessageBox.Show("OnChannelException : " + error);
 }
Ejemplo n.º 26
0
 static void ChannelCreated(object sender, PushSharp.Core.IPushChannel pushChannel)
 {
    // Console.WriteLine("Channel Created for: " + sender);
 }
Ejemplo n.º 27
0
 void push_OnDeviceSubscriptionExpired(object sender, string expiredSubscriptionId, DateTime expirationDateUtc, PushSharp.Core.INotification notification)
 {
     //stopActions();
     MessageBox.Show("OnDeviceSubscriptionExpired : " + expiredSubscriptionId);
 }
Ejemplo n.º 28
0
 private void ChannelException(object sender, PushSharp.Core.IPushChannel pushChannel, Exception error)
 {
     ILog log = LogManager.GetLogger(this.GetType());
     log.Error(error);
 }
Ejemplo n.º 29
0
 void push_OnNotificationSent(object sender, PushSharp.Core.INotification notification)
 {
     MessageBox.Show("push_OnNotificationSent");
 }
Ejemplo n.º 30
0
        static void Broker_OnNotificationSent(object sender, PushSharp.Core.INotification notification)
        {

        }