Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 512 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 512 Bytes

WebApi-OrderedFilters

Installation

Install from Nuget: Install-Package RichardLawley.WebApi.OrderedFilters

In your WebApiConfig.cs (or wherever you configure WebAPI)

// Change the Filter Provider to one which respects ordering
config.Services.Replace(typeof(System.Web.Http.Filters.IFilterProvider), new OrderedFilterProvider());

Usage

Derive your filters from BaseActionFilter, BaseAuthorizationFilter or BaseExceptionFilter, and set the Order property.