Beispiel #1
0
 private void ShowError(string mes)
 {
     if (!isOnLoad)
     {
         return;
     }
     AddFiddlerObjectLog(mes);
     if (myFreeHttpWindow.InvokeRequired)
     {
         myFreeHttpWindow.BeginInvoke(new Action <string>(myFreeHttpWindow.PutError), mes);
     }
     else
     {
         myFreeHttpWindow.PutError(mes);
     }
 }
Beispiel #2
0
 private void ShowError(string mes, bool isReport = true)
 {
     if (!isOnLoad)
     {
         return;
     }
     AddFiddlerObjectLog(mes);
     if (isReport)
     {
         _ = RemoteLogService.ReportLogAsync(mes, RemoteLogService.RemoteLogOperation.SessionTamp, RemoteLogService.RemoteLogType.Error);
     }
     if (myFreeHttpWindow.InvokeRequired)
     {
         myFreeHttpWindow.BeginInvoke(new Action <string>(myFreeHttpWindow.PutError), mes);
     }
     else
     {
         myFreeHttpWindow.PutError(mes);
     }
 }