Created
February 28, 2016 13:54
-
-
Save cdvillard/abc30031074ee57aa9a3 to your computer and use it in GitHub Desktop.
Sample Action Filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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