コード例 #1
0
 private void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     if (System.Diagnostics.Debugger.IsAttached)
     {
         System.Diagnostics.Debugger.Break();
     }
 }
コード例 #2
0
 void pushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
         System.Diagnostics.Debug.WriteLine(String.Format("A push notification {0} error occurred.  {1} ({2}) {3}",
             e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData))
             );
 }
コード例 #3
0
 private void CanalPush_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
                            MessageBox.Show(String.Format("A push notification {0} error occurred.  {1} ({2}) {3}",
                                                          e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData))
                            );
 }
コード例 #4
0
 private void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
          MessageBox.Show(String.Format("A push notification {0} error occurred.  {1} ({2}) {3}",
              e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData))
              );
 }
コード例 #5
0
        /// <summary>
        /// Event handler for the ErrorOccurred event.
        /// Handles different events according to ErrorType.
        /// </summary>
        /// <remarks>
        /// Needs more work... ;-(
        /// </remarks>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void channel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            switch (e.ErrorType)
            {
            // something went severely wrong. lets wait a while before trying again.
            case ChannelErrorType.ChannelOpenFailed:
                DisposeChannel();
                System.Threading.Thread.Sleep(60000);
                BindChannel();
                break;

            // an image uri has been referenced in a notification that was
            // not bound to the shell tile.
            case ChannelErrorType.MessageBadContent:
                break;

            // too many notifications have been received in too short a time span.
            case ChannelErrorType.NotificationRateTooHigh:
                break;

            // a bad payload was received. re-establish the connection to overcome this.
            case ChannelErrorType.PayloadFormatError:
                DisposeChannel();
                BindChannel();
                break;

            // the type notifications we're receiving is going to change.
            case ChannelErrorType.PowerLevelChanged:
                break;

            default:
                break;
            }
        }
コード例 #6
0
        void NotificationService_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            FSLog.Error("Push notification error {0} occured. {1} {2} {3}", e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData);

            Stop();
            Start();
        }
コード例 #7
0
 void httpChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
     {
         msg.Text = e.Message;
     });
 }
コード例 #8
0
        private void OnChannelErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("Channel error happened! " + e.ErrorType);

            switch (e.ErrorType)
            {
            case ChannelErrorType.ChannelOpenFailed:
                // ...
                break;

            case ChannelErrorType.MessageBadContent:
                // ...
                break;

            case ChannelErrorType.NotificationRateTooHigh:
                // ...
                break;

            case ChannelErrorType.PayloadFormatError:
                // ...
                break;

            case ChannelErrorType.PowerLevelChanged:
                // ...
                break;
            }
        }
コード例 #9
0
        void OnChannelErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            bool reOpenConnection = e.ErrorType == ChannelErrorType.ChannelOpenFailed ||
                                    e.ErrorType == ChannelErrorType.PayloadFormatError;

            var currentChannel = sender as HttpNotificationChannel;

            if (reOpenConnection == true)
            {
                lock (_syncRoot)
                {
                    if (currentChannel == _channel)
                    {
                        _channel = CreateNewChannel();
                        CloseChannel(currentChannel);
                    }
                }
            }

            AppContext.Debug.LogAsync(string.Format("Channel error- type:{0}, errorCode:{1}, message:{2}, addlData:{3}",
                                                    e.ErrorType,
                                                    e.ErrorCode,
                                                    e.Message,
                                                    e.ErrorAdditionalData
                                                    ));
        }
コード例 #10
0
        void myChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            switch (e.ErrorType)
            {
            case ChannelErrorType.ChannelOpenFailed:
                // ...
                break;

            case ChannelErrorType.MessageBadContent:
                // ...
                break;

            case ChannelErrorType.NotificationRateTooHigh:
                // ...
                break;

            case ChannelErrorType.PayloadFormatError:
                // ...
                break;

            case ChannelErrorType.PowerLevelChanged:
                // ...
                break;
            }
        }
コード例 #11
0
 void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     // Error handling logic
     //Dispatcher.BeginInvoke(() =>
     //    MessageBox.Show(String.Format("A push notification {0} error occurred.  {1} ({2}) {3}",
     //        e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData))
     //        );
 }
コード例 #12
0
 void httpChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     //子线程中更新UI
     Dispatcher.BeginInvoke(() =>
     {
         //  msgTextBlock.Text = e.Message;
     });
 }
コード例 #13
0
ファイル: PushHelper.cs プロジェクト: tasoili/gtalkchat
 private void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     // Error handling logic for your particular application would be here.
     if (Error != null)
     {
         Error(e);
     }
 }
コード例 #14
0
 private void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Deployment.Current.Dispatcher.BeginInvoke(new Action(() =>
     {
         MessageBox.Show(String.Format("A push notification {0} error occurred.  {1} ({2}) {3}",
                                       e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData));
     }));
 }
コード例 #15
0
        /// <summary>
        /// The callback for a channel error.
        /// </summary>
        private void httpChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            console.AddLine("Error occurred: " + e.Message);

            console.AddLine("Trying to reopen channel.");
            httpChannel.Close();
            httpChannel.Open();
        }
コード例 #16
0
ファイル: MainPage.xaml.cs プロジェクト: weddingjuma/Guardian
 void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     // Error handling logic for your particular application would be here.
     Dispatcher.BeginInvoke(() =>
                            MessageBox.Show(String.Format("A push notification {0} error occurred.  {1} ({2}) {3}",
                                                          e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData))
                            );
 }
コード例 #17
0
 private void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
     {
         System.Diagnostics.Debug.WriteLine(String.Format("A push notification {0} error occurred.  {1} ({2}) {3}",
                                                          e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData));
     });
 }
コード例 #18
0
 void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     // Error handling logic for your particular application would be here.
     Dispatcher.BeginInvoke(() =>
         MessageBox.Show(String.Format("A push notification {0} error occurred.  {1} ({2}) {3}",
             e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData))
             );
 }
コード例 #19
0
 void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     // call error handler and return uri
     RegisterError err = new RegisterError();
     err.Code = e.ErrorCode.ToString();
     err.Message = e.Message;
     this.DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, err));
 }
コード例 #20
0
 static void channel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     SafeDispatcher.Run(() => { new ToastPrompt {
                                    Message = e.Message
                                }.Show(); new ToastPrompt {
                                    Message = e.ErrorType.ToString()
                                }.Show(); });
 }
コード例 #21
0
        void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            // call error handler and return uri
            RegisterError err = new RegisterError();

            err.Code    = e.ErrorCode.ToString();
            err.Message = e.Message;
            this.DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, err));
        }
コード例 #22
0
        private void OnErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            var message = string.Format("A push notification {0} error occurred.  {1} ({2}) {3}", e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData);

            Execute.ShowDebugMessage(message);
            TLUtils.WriteLine(message);

            LoadOrCreateChannelAsync(RegisterDeviceAsync);
        }
コード例 #23
0
        void httpChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            if (e.ErrorType == ChannelErrorType.ChannelOpenFailed)
            {

            }
                 Dispatcher.BeginInvoke(() =>
           msgTextBlock.Text = e.Message);
            
        }
コード例 #24
0
        void _channel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            if (ErrorOccurred != null)
            {
                ErrorOccurred(sender, e);
            }

            Debug.WriteLine(e.ErrorCode.ToString());
            //MessageBox.Show(e.ErrorCode.ToString());
        }
コード例 #25
0
        private void Channel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            if (OnPushTokenFailed != null)
            {
                OnPushTokenFailed(this, e.Message);
            }

            Debug.WriteLine("/********************************************************/");
            Debug.WriteLine("A push notification {0} error occurred.  {1} ({2}) {3}", e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData);
        }
コード例 #26
0
        void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            // call error handler and return uri
            RegisterError err = new RegisterError
            {
                Code    = e.ErrorCode.ToString(),
                Message = e.Message
            };

            SendError(JsonConvert.SerializeObject(err));
        }
コード例 #27
0
            private void OnErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
            {
#if DEBUG
                Debug.WriteLine("Received error on push channel: " + e.Message);
#endif

                PluginResult result = new PluginResult(PluginResult.Status.ERROR, e.Message);

                result.KeepCallback = false;
                parent.DispatchCommandResult(result, callbackId);
            }
コード例 #28
0
        private void PushChannelErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            Deployment.Current.Dispatcher.BeginInvoke(() => {
                var toast = new ToastPrompt {
                    Title = "Push error occurred", Message = e.Message
                };
                toast.Show();
            });

            System.Diagnostics.Debug.WriteLine("Error: {0},{1}", e.ErrorType, e.Message);
        }
コード例 #29
0
 private void ErrorOccurred(
     object sender,
     NotificationChannelErrorEventArgs args)
 {
     if (Error != null)
     {
         Error(this, new NotificationErrorEventArgs {
             Message = string.Format("{0}: {1}", args.ErrorType, args.Message)
         });
     }
 }
コード例 #30
0
        void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            // call error handler and return uri
            var err = new RegisterError
            {
                Code    = e.ErrorCode.ToString(),
                Message = e.Message
            };

            this.ExecuteCallback(this.pushOptions.ErrorCallback, JsonConvert.SerializeObject(err));
        }
コード例 #31
0
ファイル: MainPage.xaml.cs プロジェクト: ITSF/WP8Book
 void PushChannelErrorOccurred
     (object sender,
     NotificationChannelErrorEventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
                            MessageBox.Show(
                                String.Format(
                                    @"Ein Push- Notification {0} 
           Fehler ist aufgretreten.
          {1} {2} {3}",
                                    e.ErrorType, e.ErrorCode,
                                    e.ErrorAdditionalData))
                            );
 }
コード例 #32
0
 private void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Logger.Instance.Error(string.Format("A push notification {0} error occurred.  {1} ({2}) {3}", e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData));
     if (e.ErrorType == ChannelErrorType.ChannelOpenFailed && this._retryTries <= 3)
     {
         this._retryTries = this._retryTries + 1;
         this.OpenChannel();
     }
     if (e.ErrorType != ChannelErrorType.PayloadFormatError || this._retryTries > 3)
     {
         return;
     }
     this._retryTries = this._retryTries + 1;
     this.OpenChannel();
 }
        /// <summary>
        /// Event handler for when a push notification error occurs.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            String ErrorMessage = String.Format("A push notification {0} error occurred.  {1} ({2}) {3}", e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData);

            Deployment.Current.Dispatcher.BeginInvoke(() =>
            {
                System.Diagnostics.Debug.WriteLine(ErrorMessage);
            });
            Deployment.Current.Dispatcher.BeginInvoke(new PushServiceRegistrationCallback(mRegistrationCallback), ErrorMessage, true);
            // Error handling logic for your particular application would be here.
            //Dispatcher.BeginInvoke(() =>
            //    MessageBox.Show(String.Format("A push notification {0} error occurred.  {1} ({2}) {3}",
            //        e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData))
            //        );
        }
コード例 #34
0
        void OnChannelErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            bool reOpenConnection = e.ErrorType == ChannelErrorType.ChannelOpenFailed ||
                                    e.ErrorType == ChannelErrorType.PayloadFormatError;
            
            var currentChannel = sender as HttpNotificationChannel;
            if (reOpenConnection == true)
            {
                lock (_syncRoot)
                {
                    if (currentChannel == _channel)
                    {
                        _channel = CreateNewChannel();
                        CloseChannel(currentChannel);
                    }
                }
            }
#pragma warning disable 4014
            AppContext.Debug.LogAsync(string.Format("Channel error- type:{0}, errorCode:{1}, message:{2}, addlData:{3}",
                e.ErrorType,
                e.ErrorCode,
                e.Message,
                e.ErrorAdditionalData
                ));
#pragma warning restore 4014
        }
コード例 #35
0
 void httpChannel_ExceptionOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Dispatcher.BeginInvoke(() => UpdateStatus(e.ErrorType + " occurred: " + e.Message));
 }
コード例 #36
0
 private void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Debug.WriteLine("[Linphone] Push channel error {0}", e.Message);
 }
コード例 #37
0
 void pushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     MessageBox.Show(e.Message);
 }
コード例 #38
0
 private void ErrorOccurred(
     object sender,
     NotificationChannelErrorEventArgs args)
 {
     if(Error != null)
         Error(this, new NotificationErrorEventArgs {
             Message = string.Format("{0}: {1}", args.ErrorType, args.Message)
         });
 }
コード例 #39
0
 void uriChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     txBlock_Notificacion.Text = "Obteniendo UriChannel MPNS...";
     abrirCanalMPNS();
 }
コード例 #40
0
 void channel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     //System.Diagnostics.Debug.WriteLine(e.GetType().Name + ": " + e.Message);
      Dispatcher.BeginInvoke(() => MessageBox.Show(e.Message, e.GetType().Name, MessageBoxButton.OK));
 }
コード例 #41
0
 private void CurrentChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     DispatchNonFinalResult(PluginResult.Status.ERROR, e.Message);
 }
コード例 #42
0
 void channel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     throw new Exception(e.Message);
 }
コード例 #43
0
ファイル: FriendsViewModel.cs プロジェクト: yeenfei/samples
 void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Debug.WriteLine("A push notification {0} error occurred.  {1} ({2}) {3}",
             e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData);
 }
コード例 #44
0
        private void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {

            Exception exception = new Exception(e.Message);
            ErrorHandler.Save(exception, MobileTypeEnum.WP8, additionalInformation: e.ErrorCode + ":" + e.ErrorAdditionalData);
            MessageBox.Show(String.Format("A push notification {0} error occurred.  {1} ({2}) {3}",
                e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData));
        }
コード例 #45
0
ファイル: NotificationClient.cs プロジェクト: bdunlay/geoscav
 private void httpChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Deployment.Current.Dispatcher.BeginInvoke(() => UpdateStatus(e.Message));
 }
コード例 #46
0
 void myChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     switch (e.ErrorType)
     {
         case ChannelErrorType.ChannelOpenFailed:
             // ...
             break;
         case ChannelErrorType.MessageBadContent:
             // ...
             break;
         case ChannelErrorType.NotificationRateTooHigh:
             // ...
             break;
         case ChannelErrorType.PayloadFormatError:
             // ...
             break;
         case ChannelErrorType.PowerLevelChanged:
             // ...
             break;
     }
 }
コード例 #47
0
 public void ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     BmobDebug.E(String.Format("A push notification {0} error occurred.  {1} ({2}) {3}", e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData));
 }
コード例 #48
0
ファイル: MainPage.xaml.cs プロジェクト: remobjects/Push
 private void PushChannelOnErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Log("A push notification {0} error occurred.\n  {1} ({2}) {3}\n", e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData);
 }
コード例 #49
0
ファイル: PursuitUtils.cs プロジェクト: uvbs/MyProjects
 /// <summary>
 /// 推送通知发生错误时触发
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void _pushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
 }
コード例 #50
0
ファイル: MainPage.xaml.cs プロジェクト: s-silva/roadhouse
 void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
 }
コード例 #51
0
ファイル: App.xaml.cs プロジェクト: sarandogou/boghe
 private void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     // TODO: Let your cloud server know that the push channel to this device is no longer valid.
 }
コード例 #52
0
 static void channel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     Debug.WriteLine(e.Message);
 }
コード例 #53
0
ファイル: PushHelper.cs プロジェクト: allanfreitas/gtalkchat
 private void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     // Error handling logic for your particular application would be here.
     if (Error != null) {
         Error(e);
     }
 }
コード例 #54
0
 /// <summary>
 /// Event signaled when the notification channel fails to be established
 /// </summary>
 /// <param name="sender">The sending object</param>
 /// <param name="e">The event arguments</param>
 private void httpChannel_ExceptionOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     UpdateStatus(e.ErrorType + " occurred: " + e.Message);
 }
 /// <summary>
 /// Event handler for when a push notification error occurs.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     String ErrorMessage = String.Format("A push notification {0} error occurred.  {1} ({2}) {3}", e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData);
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         System.Diagnostics.Debug.WriteLine(ErrorMessage);
     });
     Deployment.Current.Dispatcher.BeginInvoke(new PushServiceRegistrationCallback(mRegistrationCallback), ErrorMessage, true);
     // Error handling logic for your particular application would be here.
     //Dispatcher.BeginInvoke(() =>
     //    MessageBox.Show(String.Format("A push notification {0} error occurred.  {1} ({2}) {3}",
     //        e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData))
     //        );
 }
コード例 #56
0
        /// <summary>
        /// Event handler for when a push notification error occurs.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
        {
            Utils.Tools.LogException((String.Format("A push notification {0} error occurred.  {1} ({2}) {3}",
               e.ErrorType, e.Message, e.ErrorCode, e.ErrorAdditionalData)), null);

            if (processingError)
                return;

            processingError = true;
            switch (e.ErrorType)
            {
                case ChannelErrorType.ChannelOpenFailed:
                case ChannelErrorType.PayloadFormatError:

                    //ChannelErrorType.ChannelOpenFailed
                    //This error is returned when the Push Client and the Push Notification Service are unable to establish a connection

                    //ChannelErrorType.PayloadFormatError:
                    //This error is returned when the XML payload format or the HTTP header of the push notification is syntactically invalid.

                    pushChannel = HttpNotificationChannel.Find(channelName);

                    try
                    {
                        if (pushChannel != null)
                        {
                            pushChannel.Close();
                            pushChannel.Dispose();
                            pushChannel = null;
                        }
                    }
                    catch (InvalidOperationException ioException)
                    {
                        Utils.Tools.LogException("Cannot close the channel", ioException);
                    }
                    catch (ArgumentException argEcxeption)
                    {
                        Utils.Tools.LogException("Cannot close the channel", argEcxeption);
                    }
                 /*   UIThread.Invoke(() =>
                    {
                        this.enablePushNotifications();
                    });*/
                    break;
                case ChannelErrorType.NotificationRateTooHigh:
                    //This error is returned when the Push Client is unable to receive messages because the web service is sending too many messages at too quick a rate to a certain device.
                    //Slow down the notifications
                    //@TODO: send the server a signal?
                    break;
                case ChannelErrorType.MessageBadContent:
                    //This error is returned when the image reference is pointing to an HTTP image, even though the notification channel is not currently bound to a list of URIs.
                    //This should never happen to us
                    break;
                case ChannelErrorType.PowerLevelChanged:
                    //This has been deprecated because push client no longer takes any action based on any power states
                    break;
                case ChannelErrorType.Unknown:
                    //An internal error has occurred and could not be recovered. A device reboot may be necessary.
                    break;
                default:
                    break;
            }

            processingError = false;
        }
コード例 #57
0
ファイル: EntryPage.xaml.cs プロジェクト: luiscrs14/CMOV2
 void OnErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     MessageBox.Show("Error connecting to MPNS");
     Debug.WriteLine("Error on communication with MPNS");
 }
コード例 #58
0
ファイル: App.xaml.cs プロジェクト: salfab/Open-Todo
 private void ErrorOccurred(NotificationChannelErrorEventArgs notificationChannelErrorEventArgs)
 {
     throw new NotImplementedException();
 }
コード例 #59
0
ファイル: Utils.cs プロジェクト: nbclark/commuter
 static void _channel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     //
 }
コード例 #60
0
 private static void PushChannel_ErrorOccurred(object sender, NotificationChannelErrorEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("ERROR CODE:" + e.ErrorCode + ": Could not register for push notifications do to " + e.Message);
 }