src/Azos.Wave/MVC/Controller.cs
/// <summary>
/// Override to add logic/filtering right after the invocation of action method. Must return the result (which can be altered/filtered).
/// The default implementation calls ActionFilters
/// </summary>
Override to add logic/filtering right after the invocation of action method. Must return the result (which can be altered/filtered).
The default implementation calls ActionFilters
Override to add logic / filtering right after the invocation of action method . Must return the result ( which can be altered / filtered ) . The default implementation calls ActionFilters
protected internal virtual object AfterActionInvocation(WorkContext work, string action, MethodInfo method, object[] args, object result)
      {
         var filters = GetActionFilters(method);
         if (filters!=null)
           for(var i=filters.Length-1; i>=0; i--)
            if (filters[i].AfterActionInvocation(this, work, action, method, args, ref result)) return result;
         filters = GetActionFilters(GetType());
         if (filters!=null)
           for(var i=filters.Length-1; i>=0; i--)
            if (filters[i].AfterActionInvocation(this, work, action, method, args, ref result)) return result;
         return result;
      }
protected internal virtual object AfterActionInvocation ( WorkContext work , string action , MethodInfo method , object [ ] args , object result ) { var filters = GetActionFilters ( method ) ; if ( filters != null ) for ( var i = filters . Length - 1 ; i >= 0 ; i -- ) if ( filters [ i ] . AfterActionInvocation ( this , work , action , method , args , ref result ) ) return result ; filters = GetActionFilters ( GetType ( ) ) ; if ( filters != null ) for ( var i = filters . Length - 1 ; i >= 0 ; i -- ) if ( filters [ i ] . AfterActionInvocation ( this , work , action , method , args , ref result ) ) return result ; return result ; }
Override to add logic/filtering right after the invocation of action method.
Override to add logic / filtering right after the invocation of action method .
//1 Method Level //2 Class Level
work
WorkContext
action
string
method
MethodInfo
args
object[]
result
object