Exemple #1
0
 private void raiseUnhandledErrorOccured(IOMessageEventArgs args)
 {
     Task.Run(() =>
     {
         try
         {
             UnhandledErrorOccured?.Invoke(this, args);
         }
         catch (Exception ex)
         {
             _log.LogError($"Error occured while processing unhandled error: {ex}");
         }
     });
 }
Exemple #2
0
 private void raiseMessageDownloadCompleted(IOMessageEventArgs args)
 {
     Task.Run(() =>
     {
         try
         {
             MessageDownloadCompleted?.Invoke(this, args);
         }
         catch (Exception ex)
         {
             _log.LogError($"Error occured while processing downloaded message: {ex}");
         }
     });
 }