コード例 #1
0
 public void Add(HandledExceptionDTO handledException)
 {
     _handledExceptionRepository.Add(new Entities.HandledException()
     {
         ExceptionType = handledException.ExceptionType, Occurred = handledException.Occurred, StackTrace = handledException.StackTrace
     });
     _handledExceptionRepository.UnitOfWork.Commit();
 }
コード例 #2
0
 public void Add(HandledExceptionDTO handledException)
 {
     if (string.IsNullOrEmpty(Setup.GetAPIKey()))
     {
         _handledExceptionRepository.Add(new Entities.HandledException()
         {
             ExceptionType = handledException.ExceptionType, Occurred = handledException.Occurred, StackTrace = handledException.StackTrace
         });
         _handledExceptionRepository.UnitOfWork.Commit();
     }
     else
     {
         using (var handledExceptionHelper = new ExceptionHelper(Guid.Parse(Setup.GetAPIKey())))
         {
             handledExceptionHelper.Add(new Entities.HandledException()
             {
                 ExceptionType = handledException.ExceptionType, Occurred = handledException.Occurred, StackTrace = handledException.StackTrace
             });
         }
     }
 }