Ejemplo n.º 1
0
 public override void CrashesDidSucceedSendingErrorReport(MSCrashes crashes, MSErrorReport msReport)
 {
     if (_owner.SentErrorReport != null)
     {
         var report = ErrorReportCache.GetErrorReport(msReport);
         var e      = new SentErrorReportEventArgs();
         e.Report = report;
         _owner.SentErrorReport(null, e);
     }
 }
Ejemplo n.º 2
0
 public void SentErrorReport(object sender, SentErrorReportEventArgs e)
 {
     Device.BeginInvokeOnMainThread(() =>
     {
         if (SentErrorReportLabel != null)
         {
             SentErrorReportLabel.Text = TestStrings.DidSentErrorReportText;
         }
     });
 }
Ejemplo n.º 3
0
        public void OnSendingSucceeded(AndroidErrorReport androidReport)
        {
            if (_owner.SentErrorReport == null)
            {
                return;
            }
            var report = ErrorReportCache.GetErrorReport(androidReport);
            var e      = new SentErrorReportEventArgs();

            e.Report = report;
            _owner.SentErrorReport(null, e);
        }
Ejemplo n.º 4
0
 public override void CrashesDidSucceedSendingErrorReport(iOSCrashes crashes, MSACErrorReport msReport)
 {
     if (SentErrorReport != null)
     {
         var report = new ErrorReport(msReport);
         var e      = new SentErrorReportEventArgs
         {
             Report = report
         };
         SentErrorReport(null, e);
     }
 }
Ejemplo n.º 5
0
        static void SentErrorReportHandler(object sender, SentErrorReportEventArgs e)
        {
            MobileCenterLog.Info(LogTag, "Sent error report");

            var report = e.Report;

            //test some values
            if (report.Exception != null)
            {
                MobileCenterLog.Info(LogTag, report.Exception.ToString());
            }
            else
            {
                MobileCenterLog.Info(LogTag, "No system exception was found");
            }

            if (report.AndroidDetails != null)
            {
                MobileCenterLog.Info(LogTag, report.AndroidDetails.ThreadName);
            }
        }
Ejemplo n.º 6
0
        private void SentErrorReportHandler(object sender, SentErrorReportEventArgs e)
        {
            AppCenterLog.Info(LogTag, "Sent error report");

            var         args         = e as SentErrorReportEventArgs;
            ErrorReport report       = args.Report;
            string      AccountsJson = Newtonsoft.Json.JsonConvert.SerializeObject(Settings.Person.Accounts);

            //test some values
            if (report.Exception != null)
            {
                AppCenterLog.Info(LogTag, report.Exception.ToString());
            }
            else
            {
                AppCenterLog.Info(LogTag, "No system exception was found");
            }

            if (report.AndroidDetails != null)
            {
                AppCenterLog.Info(LogTag, report.AndroidDetails.ThreadName);
            }
        }
Ejemplo n.º 7
0
 static void SentErrorReportHandler(object sender, SentErrorReportEventArgs e)
 {
     AppCenterLog.Info(LogTag, "Sent error report");
 }
Ejemplo n.º 8
0
 private void Crashes_SentErrorReport(object sender, SentErrorReportEventArgs e)
 {
     Analytics.TrackEvent($"Crashes_SentErrorReport at {DateTime.Now.ToLongTimeString()}");
 }
Ejemplo n.º 9
0
 private void Crashes_SentErrorReport(object sender, SentErrorReportEventArgs e)
 {
     Microsoft.AppCenter.Analytics.Analytics.TrackEvent($"Crashes_SentErrorReport Count = { counter.ToString() } at {DateTime.Now.ToLongTimeString()}");
     App.counter++;
 }