Example #1
0
 protected override bool SendExceptionReportInBackground(IExceptionReportSender innerSender, LogifyClientExceptionReport report)
 {
     if (innerSender != null)
     {
         return(innerSender.SendExceptionReport(report));
     }
     else
     {
         return(false);
     }
 }
Example #2
0
        protected override Task <bool> SendExceptionReportInBackgroundAsync(IExceptionReportSender innerSender, LogifyClientExceptionReport report)
        {
            Thread thread = new Thread(() => {
                if (innerSender != null)
                {
                    innerSender.SendExceptionReport(report);
                }
            });

            //thread.Priority = ThreadPriority.Highest;
            thread.Start();
            //Thread.Sleep(3000);
            return(Task.FromResult(true));
        }