Class ActionFilterAttribute
General ancestor for MVC Action Filters - get invoked before and after actions
Inheritance
System.Object
    System.Attribute
    ActionFilterAttribute
      
      
      
  Inherited Members
      System.Attribute.Equals(System.Object)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
    
    
      System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Module)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
    
    
      System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    
    
      System.Attribute.GetHashCode()
    
    
      System.Attribute.IsDefaultAttribute()
    
    
      System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
    
    
      System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
    
    
      System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
    
    
      System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
    
    
      System.Attribute.IsDefined(System.Reflection.Module, System.Type)
    
    
      System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
    
    
      System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
    
    
      System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    
    
      System.Attribute.Match(System.Object)
    
    
      System.Attribute.TypeId
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: NFX.Wave.MVC
Assembly: NFX.Wave.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
public abstract class ActionFilterAttribute : Attribute
  Constructors
ActionFilterAttribute()
Declaration
protected ActionFilterAttribute()
  ActionFilterAttribute(Int32)
Declaration
protected ActionFilterAttribute(int order)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | order | 
Fields
Order
Dictates the call order
Declaration
public readonly int Order
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
Methods
ActionInvocationFinally(Controller, WorkContext, String, MethodInfo, Object[], ref Object)
Override to add logic/filtering finally after the invocation of action method. Must return TRUE to stop processing chain
Declaration
protected abstract void ActionInvocationFinally(Controller controller, WorkContext work, string action, MethodInfo method, object[] args, ref object result)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Controller | controller | |
| WorkContext | work | |
| System.String | action | |
| System.Reflection.MethodInfo | method | |
| System.Object[] | args | |
| System.Object | result | 
AfterActionInvocation(Controller, WorkContext, String, MethodInfo, Object[], ref Object)
Override to add logic/filtering right after the invocation of action method. Must return TRUE to stop processing chain
Declaration
protected abstract bool AfterActionInvocation(Controller controller, WorkContext work, string action, MethodInfo method, object[] args, ref object result)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Controller | controller | |
| WorkContext | work | |
| System.String | action | |
| System.Reflection.MethodInfo | method | |
| System.Object[] | args | |
| System.Object | result | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
BeforeActionInvocation(Controller, WorkContext, String, MethodInfo, Object[], ref Object)
Override to add logic/filtering right before the invocation of action method. Return TRUE to indicate that request has already been handled and no need to call method body and AfterActionInvocation in which case return result via 'out result' paremeter
Declaration
protected abstract bool BeforeActionInvocation(Controller controller, WorkContext work, string action, MethodInfo method, object[] args, ref object result)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Controller | controller | |
| WorkContext | work | |
| System.String | action | |
| System.Reflection.MethodInfo | method | |
| System.Object[] | args | |
| System.Object | result | 
Returns
| Type | Description | 
|---|---|
| System.Boolean |