コード例 #1
0
 /// <summary>
 /// 获取Api行为的特性过滤器
 /// </summary>
 /// <param name="apiAction">Api行为</param>
 /// <returns></returns>
 public virtual IEnumerable <IFilter> GetActionFilters(ApiAction apiAction)
 {
     return(this.filterCached.GetOrAdd(apiAction, action => GetActionFiltersNoCached(action)));
 }
コード例 #2
0
 /// <summary>
 /// Api行为上下文
 /// </summary>
 /// <param name="context">请求上下文</param>
 /// <param name="action">Api行为</param>
 public ActionContext(RequestContext context, ApiAction action)
     : base(context.Session, context.Packet, context.AllSessions)
 {
     this.Action = action;
 }