public override ErrorReport Report(string message, Exception error = null) { ErrorReport report = base.Report(message, error); try { int result = DataProviderBase.GetInstance().ReportError(report).Result; } catch (Exception ex) { ex.GenerateReferenceId(); LogManager.GetCurrentClassLogger().Error(ex); using (var errorDialog = ErrorMessageBaseUtil.Instance.CreateMessageErrorDialog()) { var info = ErrorMessageBaseUtil.Instance.GetErrorMessage(ex); errorDialog.Message = info.Message; errorDialog.MessageDetails = info.Details; var result = errorDialog.ShowHandledDialog(); } } return(report); }
private DataProviderBase GetDataProvider() { return(DataProviderBase.GetInstance()); }