如何在actionfilters之间传递秒数?

时间:2015-05-15 05:12:22

标签: c# asp.net-mvc

假设我有两个动作和两个动作过滤器,比如这个

[filter1]
public actionresult Index()

[filter2]
[httppost]
public actionresult Index(User user)

这里是过滤类

public class filter1:ActionFilterAttribute{
public override void OnResultExecuted(ResultExecutedContext filterContext)}

public class filter2:ActionFilterAttribute{
public override void OnActionExecuting(ActionExecutingContext filterContext)}

问题是:如何从filter1到filter2传递秒数?

0 个答案:

没有答案