Exemple #1
0
        protected static void AddStaticExceptionData(Exception ex, bool saveInDb = true)
        {
            if (_staticExceptionDataList == null)
            {
                _staticExceptionDataList = new List <Exception>();
            }

            _staticExceptionDataList.Add(ex);
            ThisAppContext.AddLogInDb(ex);
        }
Exemple #2
0
        protected static void AddStaticExceptionData(Exception ex, IdentifyClass dataId = null)
        {
            if (_staticExceptionDataList == null)
            {
                _staticExceptionDataList = new List <Exception>();
            }

            _staticExceptionDataList.Add(ex);

            ThisAppContext.AddLogInDb(ex, dataId);
        }
Exemple #3
0
 public static void AddStaticExceptionData(Exception exData)
 {
     if (_staticExceptionDataList == null)
     {
         _staticExceptionDataList = new List <Exception>();
     }
     try
     {
         _staticExceptionDataList.Add(exData);
         ThisAppContext.AddLogInDb(exData);
     }
     catch (Exception ex)
     {
         try
         {
             _staticExceptionDataList.Add(ex);
         }
         catch (Exception)
         {
         }
     }
 }