Top "Actionfilterattribute" questions

ActionFilterAttribute is a hybrid abstract class that implements an Attribute, an IActionFilter, and an IResultFilter.

ASP.NET MVC Global or BaseController ActionFilter to Execute Before OnAuthorization

In my application (ASP.NET MVC 3) I have a BaseController class that all my Controllers inherit and in that BaseController …

c# asp.net-mvc authorization actionfilterattribute authorize-attribute
How can I read parameter attribute value in web api action filter

I've got an API method where the Id parameter is annotated with CacheType attribute public Object Get([CacheType(CacheTypes.Venue)]…

c# api actionfilterattribute
Async WebApi ActionFilterAttribute. An asynchronous module or handler completed while an asynchronous operation was still pending

I understand await waits for a task (an awaitable) to complete. But I'm confused about what that actually means. The …

asp.net-web-api async-await actionfilterattribute
WebApi ActionFilterAttribute, HttpActionContext access user name (IPrincipal)

I need to access the currently logged in user in my action filter. The identity is set by a DelegatingHandler …

authentication asp.net-web-api actionfilterattribute iprincipal
OnActionExecuted being called twice in Web API

I am trying to do some stuff after my controller is done with the action at OnActionExecuted. However the method …

asp.net-mvc asp.net-web-api actionfilterattribute onactionexecuted
Get request-header in web api

I'm trying to set a header with a simple key/value-pair and want to read this from my API. So …

c# authentication asp.net-web-api request actionfilterattribute
ASP.NET MVC - ActionFilterAttribute to validate POST data

Actually I have an application that is using a WebService to retrieve some clients information. So I was validating the …

asp.net-mvc post httprequest actionfilterattribute