Beispiel #1
0
 /// <summary>
 /// Callback for LinphoneCoreListener
 /// </summary>
 public void LogUploadStatusChanged(LinphoneCoreLogCollectionUploadState state, string info)
 {
     if (BaseModel.UIDispatcher == null)
     {
         return;
     }
     BaseModel.UIDispatcher.BeginInvoke(() =>
     {
         if (state == LinphoneCoreLogCollectionUploadState.LinphoneCoreLogCollectionUploadStateDelivered)
         {
             BugCollector.ReportExceptions(info);
         }
         else if (state == LinphoneCoreLogCollectionUploadState.LinphoneCoreLogCollectionUploadStateNotDelivered)
         {
             Logger.Err(String.Format("[LinphoneManager] Logs upload error: {0}", info));
             var notif = new CustomMessageBox()
             {
                 Caption            = "Logfile upload failed",
                 Message            = info,
                 RightButtonContent = AppResources.Close
             };
             notif.Show();
         }
     });
 }
Beispiel #2
0
        void CoreListener.LogCollectionUploadStateChanged(LogCollectionUploadState state, string info)
        {
            if (CoreDispatcher == null)
            {
                return;
            }
#pragma warning disable CS4014 // Dans la mesure où cet appel n'est pas attendu, l'exécution de la méthode actuelle continue avant la fin de l'appel
            CoreDispatcher.RunAsync(CoreDispatcherPriority.Normal, () => {
                if (state == LogCollectionUploadState.Delivered)
                {
                    BugCollector.ReportExceptions(info);
                }
                else if (state == LogCollectionUploadState.NotDelivered)
                {
                    Debug.WriteLine("[LinphoneManager] Logs upload error: " + info);

                    /* var notif = new CustomMessageBox()
                     * {
                     *   Caption = "Logfile upload failed",
                     *   Message = info,
                     *   RightButtonContent = AppResources.Close
                     * };
                     * notif.Show();*/
                }
            });
        }
Beispiel #3
0
 void LogCollectionUploadStateChanged(Core lc, CoreLogCollectionUploadState state, string info)
 {
     if (CoreDispatcher == null)
     {
         return;
     }
     if (state == CoreLogCollectionUploadState.Delivered)
     {
         BugCollector.ReportExceptions(info);
     }
     else if (state == CoreLogCollectionUploadState.NotDelivered)
     {
         Debug.WriteLine("[LinphoneManager] Logs upload error: " + info);
     }
 }