protected override void OnReportException(ReportExceptionEventArgs e)
 {
     for (int i = 0; i < 3; i++)
     {
         if (e.SendReport())
         {
             break;
         }
     }
     e.TryToContinue = true;
 }
Пример #2
0
        void TryAddSystemInfo(ReportExceptionEventArgs e) {
            try {
                e.AddCustomProperty("Elevation Status", (!new UacHelper().CheckUac()).ToString());
            } catch {}
            try {
                e.AddCustomProperty("SEMVER", GetProductVersion());
            } catch {}
            try {
                e.AddCustomProperty("Uptime", (DateTime.Now - Process.GetCurrentProcess().StartTime).TotalSeconds + "s");
            } catch {}
            // TODO: Attach Log file?
            e.TryToContinue = false;
            e.SendReport();
            // TODO
            /*
            try {
                e.AddCustomProperty("IsPremium", KnownExceptions.IsPremium);
            } catch { }
            try {
                e.AddCustomProperty("UserId", KnownExceptions.UserId);
            } catch { }
*/
        }
Пример #3
0
 private void StartSendReport()
 {
     reportExceptionEventArgs.SendReport();
 }