Skip to content

Instantly share code, notes, and snippets.

@cdvillard
Created February 28, 2016 13:54
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 cdvillard/abc30031074ee57aa9a3 to your computer and use it in GitHub Desktop.
Save cdvillard/abc30031074ee57aa9a3 to your computer and use it in GitHub Desktop.
Sample Action Filter
public class SampleActionFilter : ActionFilterAttribute
{
public override void OnActionExecuting (ActionExecutingContext filterContext)
{
Debug.WriteLine("This Event Fired: OnActionExecuting");
}
public override void OnActionExecuted (ActionExecutedContext filterContext)
{
Debug.WriteLine("This Event Fired: OnActionExecuted");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment