public static void ReportError(IFileAccessManager logFileManager, Exception e, [CallerFilePath] string sTitle = "", [CallerMemberName] string sDescription = "") { MobileCenter_Helper.AddAttachmentAndReportToMobileCenter(logFileManager, FormatErrorReporting(e, sTitle, sDescription).ToString()); MobileCenter_Helper instance = MobileCenter_Helper.GetInstance(); if (instance.m_sbLogs != null) { lock (locker) { instance.m_sbLogs.Clear(); instance.m_sbLogs = null; } } }
public static void ReportError(IFileAccessManager logFileManager, Exception e, StringBuilder dicInfos) { MobileCenter_Helper.AddAttachmentAndReportToMobileCenter(logFileManager, FormatErrorReporting(e, dicInfos).ToString()); MobileCenter_Helper instance = MobileCenter_Helper.GetInstance(); if (instance.m_sbLogs != null) { lock (locker) { instance.m_sbLogs.Clear(); instance.m_sbLogs = null; } } }