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