Last post Oct 21, 2019 04:40 AM by shaili shah
Oct 05, 2019 04:35 AM|amithashenoy|LINK
Before an action is executed, information about the action must be written to a log. After results
are returned, information about the results also must be written to the log.
You need to log the actions and results
what shoul be the answers for target1 and target2
Before action executed = OnActionExecuting(ActionExecutingContext filterContext)
after result returned = once action executed you get the result ,so "OnActionExecuted(ActionExecutedContext filterContext)"
Can anyone tell me if i am right or wrong ?
you can get result in OnResultExecuting in as well ..
public class LogActionFilter : ActionFilterAttribute
public override void TARGET1
public override void TARGET2
I really appreciate your help.Thank you
Oct 07, 2019 06:51 AM|jiadongm|LINK
Yes, you are right. The base ActionFilterAttribute class has the following methods that you can override:
For more, you can refer to
Oct 21, 2019 04:40 AM|shaili shah|LINK
ActionFilterAttribute abstract class includes the following methods to override: