Пример #1
0
        public void Invoke(ActionInvokerProviderContext context, Action callNext)
        {
            var actionDescriptor = context.ActionContext.ActionDescriptor as ReflectedActionDescriptor;

            if (actionDescriptor != null)
            {
                context.Result = new ReflectedActionInvoker(
                                    context.ActionContext,
                                    actionDescriptor,
                                    _controllerFactory,
                                    _bindingProvider,
                                    _filterProvider);
            }

            callNext();
        }
Пример #2
0
 public IActionInvoker CreateInvoker(ActionContext actionContext)
 {
     var context = new ActionInvokerProviderContext(actionContext);
     _actionInvokerProvider.Invoke(context);
     return context.Result;
 }