Example #1
0
 /// <summary>
 /// Сохранить лог Exception
 /// </summary>
 /// <param name="ex"></param>
 /// <returns></returns>
 public static void SaveError(this Exception ex)
 {
     if (ex.InnerException != null)
     {
         SaveError(ex.InnerException);
     }
     EventLogs.SaveError(GetErrorMessage(ex));
 }
Example #2
0
 /// <summary>
 /// Сохранить лог Exception
 /// </summary>
 /// <param name="ex"></param>
 /// <param name="id_services"></param>
 /// <param name="id_eventID"></param>
 /// <returns></returns>
 public static void SaveError(this Exception ex, int?id_services, int?id_eventID)
 {
     if (ex.InnerException != null)
     {
         SaveError(ex.InnerException, id_services, id_eventID);
     }
     EventLogs.SaveError(GetErrorMessage(ex), id_services, id_eventID);
 }
Example #3
0
 /// <summary>
 /// Сохранить лог Exception
 /// </summary>
 /// <param name="ex"></param>
 /// <param name="user_message"></param>
 /// <returns></returns>
 public static void SaveError(this Exception ex, string user_message)
 {
     if (ex.InnerException != null)
     {
         SaveError(ex.InnerException, user_message);
     }
     EventLogs.SaveError(GetErrorMessage(ex, user_message));
 }
Example #4
0
 public static void SaveErrorToEventLogs(this string log)
 {
     EventLogs.SaveError(log);
 }
Example #5
0
 public static void SaveErrorToEventLogs(this Exception ex)
 {
     EventLogs.SaveError(ex);
 }
Example #6
0
 public static void SaveErrorToEventLogs(this Exception ex, string user_message)
 {
     EventLogs.SaveError(ex, user_message);
 }
Example #7
0
 public static void SaveErrorToEventLogs(this Exception ex, service service, eventID eventID)
 {
     EventLogs.SaveError(ex, (service == service.Null ? (int?)null : (int)service), (eventID == eventID.Null ? (int?)null : (int)eventID));
 }
Example #8
0
 public static void SaveErrorToEventLogs(this string log, service service, eventID eventID)
 {
     EventLogs.SaveError(log, (service == service.Null ? (int?)null : (int)service), (eventID == eventID.Null ? (int?)null : (int)eventID));
 }