Thursday, June 14, 2012

Control the execution order of your filters in ASP.NET Web API

http://www.strathweb.com/2012/06/control-the-execution-order-of-your-filters-in-asp-net-web-api/

 public class BaseActionFilterAttribute : ActionFilterAttribute, IBaseAttribute
{
    public int Position { get; set; }
   public BaseActionFilterAttribute()
   {
     this.Position = 0;   }
   public BaseActionFilterAttribute(int positon)
   {
      this.Position = positon;
   }
}

1 comment: