Exemple #1
0
 /// <summary>
 /// Occurs when exception is thrown.
 /// </summary>
 /// <param name="context">Action context.</param>
 public override void OnException(HttpActionExecutedContext context)
 {
     LogErrorAttribute.Log(context.Exception);
 }
 /// <summary>
 /// Occurs when exception is thrown.
 /// </summary>
 /// <param name="context">Action context.</param>
 public void OnException(ExceptionContext context)
 {
     LogErrorAttribute.Log(context.Exception);
 }