public void UploadLogFile(Action callbackOnError = null)
 {
     if (File.Exists(ConfigModel.LogFilePath) && new FileInfo(ConfigModel.LogFilePath).Length > 0)
     {
         string logContent = LogFileZipper.ReadLogFile(ConfigModel.LogFilePath);
         UploadInfoToServer(false, logContent, callbackOnError);
         Reader.ResetPreparer();
     }
     else
     {
         callbackOnError?.Invoke();
     }
 }
Пример #2
0
 public void UploadLogFile(Action callbackOnError = null)
 {
     if (File.Exists(configApp.LogFilePath) && new FileInfo(configApp.LogFilePath).Length > 0)
     {
         var logContent = zipper.ReadLogFile(configApp.LogFilePath);
         UploadInfoToServer(false, logContent, callbackOnError);
         reader.ResetPreparer();
     }
     else
     {
         callbackOnError?.Invoke();
     }
 }