Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Occurs when exception is thrown.
 /// </summary>
 /// <param name="context">Action context.</param>
 public void OnException(ExceptionContext context)
 {
     LogErrorAttribute.Log(context.Exception);
 }