Пример #1
0
 /// <summary>
 /// Log a repository exception in the delivery engine.
 /// </summary>
 /// <param name="exception">Repository exception from the delivery engine.</param>
 public virtual void LogException(DeliveryEngineRepositoryException exception)
 {
     if (exception == null)
     {
         throw new ArgumentNullException("exception");
     }
     try
     {
         Trace.TraceError("{0}: {1}, StackTrace: {2}", exception.GetType().Name, exception.Message, exception.StackTrace);
         Trace.Flush();
     }
     // ReSharper disable EmptyGeneralCatchClause
     catch
     {
     }
     // ReSharper restore EmptyGeneralCatchClause
 }