Skip to content

Instantly share code, notes, and snippets.

@HenrikFrystykNielsen
Created June 28, 2012 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HenrikFrystykNielsen/3012873 to your computer and use it in GitHub Desktop.
Save HenrikFrystykNielsen/3012873 to your computer and use it in GitHub Desktop.
Sample ActionFilter with pre- and post-action synchronous processing
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace ActionFilter
{
public class SampleFilter : ActionFilterAttribute
{
public override void OnActionExecuting(HttpActionContext actionContext)
{
}
public override void OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment