/// <summary>
 /// 构造ApiExecutionContextHandler
 /// </summary>
 /// <param name="attr"></param>
 public ApiExecutionContextHandler(ActionFilterAttribute attr)
 {
     ExceptionHandler = new DefaultApiExceptionHandler();
     ModelStateValidationErrorHandler = new DefaultModelStateValidationErrorHandler();
     UnauthorizedRequestHandler = new DefaultUnauthorizedRequestHandler();
     this.AssociateFilter = attr;
 }
 /// <summary>
 /// 构造ApiExecutionContextHandler
 /// </summary>
 /// <param name="attr"></param>
 public ApiExecutionContextHandler(ActionFilterAttribute attr)
 {
     ExceptionHandler = new DefaultApiExceptionHandler();
     ModelStateValidationErrorHandler = new DefaultModelStateValidationErrorHandler();
     UnauthorizedRequestHandler       = new DefaultUnauthorizedRequestHandler();
     this.AssociateFilter             = attr;
 }