protected static void AddStaticExceptionData(Exception ex, bool saveInDb = true) { if (_staticExceptionDataList == null) { _staticExceptionDataList = new List <Exception>(); } _staticExceptionDataList.Add(ex); ThisAppContext.AddLogInDb(ex); }
protected static void AddStaticExceptionData(Exception ex, IdentifyClass dataId = null) { if (_staticExceptionDataList == null) { _staticExceptionDataList = new List <Exception>(); } _staticExceptionDataList.Add(ex); ThisAppContext.AddLogInDb(ex, dataId); }
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) { } } }