private void TriggerBeforeExecuteAction(object[] parameters) { EventHandler <ExecuteActionEventArgs> beforeEvent = this.BeforeExecuteAction; if (beforeEvent != null) { ExecuteActionEventArgs e = new ExecuteActionEventArgs { HttpContext = this.HttpContext, ControllerInstance = this.InvokeInfo.Instance, ActionMethod = this.InvokeInfo.Action.MethodInfo, Parameters = parameters }; beforeEvent(this, e); } }
private void TriggerAfterExecuteAction(object[] parameters, object actionResult) { EventHandler <ExecuteActionEventArgs> afterEvent = this.AfterExecuteAction; if (afterEvent != null) { ExecuteActionEventArgs e = new ExecuteActionEventArgs { HttpContext = this.HttpContext, ControllerInstance = this.InvokeInfo.Instance, ActionMethod = this.InvokeInfo.Action.MethodInfo, Parameters = parameters }; e.ExecuteResult = actionResult; afterEvent(this, e); } }
private void TriggerAfterExecuteAction(object[] parameters, object actionResult) { EventHandler<ExecuteActionEventArgs> afterEvent = this.AfterExecuteAction; if( afterEvent != null ) { ExecuteActionEventArgs e = new ExecuteActionEventArgs { HttpContext = this.HttpContext, ControllerInstance = this.InvokeInfo.Instance, ActionMethod = this.InvokeInfo.Action.MethodInfo, Parameters = parameters }; e.ExecuteResult = actionResult; afterEvent(this, e); } }
private void TriggerBeforeExecuteAction(object[] parameters) { EventHandler<ExecuteActionEventArgs> beforeEvent = this.BeforeExecuteAction; if( beforeEvent != null ) { ExecuteActionEventArgs e = new ExecuteActionEventArgs { HttpContext = this.HttpContext, ControllerInstance = this.InvokeInfo.Instance, ActionMethod = this.InvokeInfo.Action.MethodInfo, Parameters = parameters }; beforeEvent(this, e); } }