/// <summary> /// 获取Api行为的特性过滤器 /// </summary> /// <param name="apiAction">Api行为</param> /// <returns></returns> public IEnumerable <IFilter> GetActionFilters(ApiAction apiAction) { return(this.GetActionFilters(apiAction, cached: true)); }
/// <summary> /// Api执行之前 /// 在此检测parameter的输入合理性 /// 不合理可以抛出异常 /// </summary> /// <param name="action">关联的Api行为</param> /// <param name="parameter">参数信息</param> public abstract void OnExecuting(ApiAction action, ApiParameter parameter);