예제 #1
0
        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;
                }
            }
        }
예제 #2
0
        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;
                }
            }
        }