Closed richarddbarnett closed 8 years ago
This also affects the 4.x branch.
Verified. We need to run that in the reverse order on action executed. Great catch! Thanks!
This is fixed in v4.0.2-CI-234 on the MyGet feed and will be available in the next push to NuGet.
If 2 filters A & B are provided for a controller via depedency injection &
OnActionExecuting
is called for filter A & then filter B, thenOnActionExecuted
is called for A & then B.If the same filters are added to
HttpConfiguration.Filters
thenOnActionExecuted
is called for B & then A, which I think is the correct order.ActionFilterWrapper.OnActionExecuting()
ActionFilterWrapper.OnActionExecuted()
Observed using Autofac 3.5.2, Autofac.WebApi2 3.4.0.