Example #1
0
 internal void TearDownController(Controller controller, TemplateParserContext context)
 {
     try
     {
         foreach (MethodInfo method in _teardownMethods)
         {
             method.Invoke(controller, WebAppHelper.CreateParameters(method, context));
         }
     }
     catch (TargetInvocationException ex)
     {
         throw ExceptionHelper.ResolveTargetInvocationException(ex);
     }
 }
Example #2
0
        internal void SetupController(Controller controller, TemplateParserContext context)
        {
            try
            {
                foreach (MethodInfo method in _setupMethods)
                {
                    method.Invoke(controller, WebAppHelper.CreateParameters(method, context));
                }
            }
            catch (TargetInvocationException ex)
            {
                throw ExceptionHelper.ResolveTargetInvocationException(ex);
            }

            RegisterAjaxMethods(controller);
        }
Example #3
0
 public object Invoke(object target, TemplateParserContext parserContext)
 {
     return(Invoke(target, WebAppHelper.CreateParameters(_methodInfo, parserContext)));
 }
Example #4
0
 public object Invoke(object target)
 {
     return(Invoke(target, WebAppHelper.CreateParameters(_methodInfo)));
 }