示例#1
0
        public ControllerActionInvoker(
            [NotNull] ActionContext actionContext,
            [NotNull] INestedProviderManager <FilterProviderContext> filterProvider,
            [NotNull] IControllerFactory controllerFactory,
            [NotNull] ControllerActionDescriptor descriptor,
            [NotNull] IInputFormattersProvider inputFormatterProvider,
            [NotNull] IControllerActionArgumentBinder controllerActionArgumentBinder,
            [NotNull] IModelBinderProvider modelBinderProvider,
            [NotNull] IModelValidatorProviderProvider modelValidatorProviderProvider,
            [NotNull] IValueProviderFactoryProvider valueProviderFactoryProvider,
            [NotNull] IScopedInstance <ActionBindingContext> actionBindingContextAccessor)
            : base(
                actionContext,
                filterProvider,
                inputFormatterProvider,
                modelBinderProvider,
                modelValidatorProviderProvider,
                valueProviderFactoryProvider,
                actionBindingContextAccessor)
        {
            _descriptor        = descriptor;
            _controllerFactory = controllerFactory;
            _argumentBinder    = controllerActionArgumentBinder;

            if (descriptor.MethodInfo == null)
            {
                throw new ArgumentException(
                          Resources.FormatPropertyOfTypeCannotBeNull("MethodInfo",
                                                                     typeof(ControllerActionDescriptor)),
                          "descriptor");
            }
        }
 public ControllerActionInvokerProvider(IControllerFactory controllerFactory,
                                        IInputFormattersProvider inputFormattersProvider,
                                        INestedProviderManager <FilterProviderContext> filterProvider,
                                        IControllerActionArgumentBinder actionInvocationInfoProvider)
 {
     _controllerFactory            = controllerFactory;
     _inputFormattersProvider      = inputFormattersProvider;
     _filterProvider               = filterProvider;
     _actionInvocationInfoProvider = actionInvocationInfoProvider;
 }
示例#3
0
 public ReflectedActionInvokerProvider(IControllerFactory controllerFactory,
                                       IActionBindingContextProvider bindingProvider,
                                       IInputFormattersProvider inputFormattersProvider,
                                       INestedProviderManager <FilterProviderContext> filterProvider)
 {
     _controllerFactory       = controllerFactory;
     _bindingProvider         = bindingProvider;
     _inputFormattersProvider = inputFormattersProvider;
     _filterProvider          = filterProvider;
 }
示例#4
0
        public FilterActionInvoker(
            [NotNull] ActionContext actionContext,
            [NotNull] INestedProviderManager <FilterProviderContext> filterProvider,
            [NotNull] IInputFormattersProvider inputFormatterProvider,
            [NotNull] IModelBinderProvider modelBinderProvider,
            [NotNull] IModelValidatorProviderProvider modelValidatorProviderProvider,
            [NotNull] IValueProviderFactoryProvider valueProviderFactoryProvider,
            [NotNull] IScopedInstance <ActionBindingContext> actionBindingContextAccessor)
        {
            ActionContext = actionContext;

            _filterProvider                 = filterProvider;
            _inputFormatterProvider         = inputFormatterProvider;
            _modelBinderProvider            = modelBinderProvider;
            _modelValidatorProviderProvider = modelValidatorProviderProvider;
            _valueProviderFactoryProvider   = valueProviderFactoryProvider;
            _actionBindingContextAccessor   = actionBindingContextAccessor;
        }
示例#5
0
 public ReflectedActionInvoker([NotNull] ActionContext actionContext,
                               [NotNull] IActionBindingContextProvider bindingContextProvider,
                               [NotNull] INestedProviderManager <FilterProviderContext> filterProvider,
                               [NotNull] IControllerFactory controllerFactory,
                               [NotNull] ReflectedActionDescriptor descriptor,
                               [NotNull] IInputFormattersProvider inputFormattersProvider)
     : base(actionContext, bindingContextProvider, filterProvider)
 {
     _descriptor              = descriptor;
     _controllerFactory       = controllerFactory;
     _inputFormattersProvider = inputFormattersProvider;
     if (descriptor.MethodInfo == null)
     {
         throw new ArgumentException(
                   Resources.FormatPropertyOfTypeCannotBeNull("MethodInfo",
                                                              typeof(ReflectedActionDescriptor)),
                   "descriptor");
     }
 }
 public ModuleActionInvokerProvider(
     IModuleFactory moduleFactory,
     IEnumerable<IFilterProvider> filterProviders,
     IInputFormattersProvider inputFormattersProvider,
     IModelBinderProvider modelBinderProvider,
     IModelValidatorProviderProvider modelValidatorProviderProvider,
     IValueProviderFactoryProvider valueProviderFactoryProvider,
     IScopedInstance<ActionBindingContext> actionBindingContextAccessor,
     IServiceProvider serviceProvider)
 {
     _moduleFactory = moduleFactory;
     _filterProviders = filterProviders.OrderBy(p => p.Order).ToList();
     _inputFormattersProvider = inputFormattersProvider;
     _modelBinderProvider = modelBinderProvider;
     _modelValidatorProviderProvider = modelValidatorProviderProvider;
     _valueProviderFactoryProvider = valueProviderFactoryProvider;
     _actionBindingContextAccessor = actionBindingContextAccessor;
     _serviceProvider = serviceProvider;
 }
示例#7
0
 public ControllerActionInvokerProvider(
     IControllerFactory controllerFactory,
     IInputFormattersProvider inputFormattersProvider,
     INestedProviderManager <FilterProviderContext> filterProvider,
     IControllerActionArgumentBinder argumentBinder,
     IModelBinderProvider modelBinderProvider,
     IModelValidatorProviderProvider modelValidationProviderProvider,
     IValueProviderFactoryProvider valueProviderFactoryProvider,
     IScopedInstance <ActionBindingContext> actionBindingContextAccessor)
 {
     _controllerFactory               = controllerFactory;
     _inputFormattersProvider         = inputFormattersProvider;
     _filterProvider                  = filterProvider;
     _argumentBinder                  = argumentBinder;
     _modelBinderProvider             = modelBinderProvider;
     _modelValidationProviderProvider = modelValidationProviderProvider;
     _valueProviderFactoryProvider    = valueProviderFactoryProvider;
     _actionBindingContextAccessor    = actionBindingContextAccessor;
 }
示例#8
0
 public ControllerActionInvokerProvider(
     IControllerFactory controllerFactory,
     IInputFormattersProvider inputFormattersProvider,
     IEnumerable <IFilterProvider> filterProviders,
     IControllerActionArgumentBinder argumentBinder,
     IModelBinderProvider modelBinderProvider,
     IModelValidatorProviderProvider modelValidationProviderProvider,
     IValueProviderFactoryProvider valueProviderFactoryProvider,
     IScopedInstance <ActionBindingContext> actionBindingContextAccessor,
     ITempDataDictionary tempData)
 {
     _controllerFactory               = controllerFactory;
     _inputFormattersProvider         = inputFormattersProvider;
     _filterProviders                 = filterProviders.OrderBy(item => item.Order).ToArray();
     _argumentBinder                  = argumentBinder;
     _modelBinderProvider             = modelBinderProvider;
     _modelValidationProviderProvider = modelValidationProviderProvider;
     _valueProviderFactoryProvider    = valueProviderFactoryProvider;
     _actionBindingContextAccessor    = actionBindingContextAccessor;
     _tempData = tempData;
 }
 public ControllerActionInvokerProvider(
     IControllerFactory controllerFactory,
     IInputFormattersProvider inputFormattersProvider,
     IEnumerable<IFilterProvider> filterProviders,
     IControllerActionArgumentBinder argumentBinder,
     IModelBinderProvider modelBinderProvider,
     IModelValidatorProviderProvider modelValidationProviderProvider,
     IValueProviderFactoryProvider valueProviderFactoryProvider,
     IScopedInstance<ActionBindingContext> actionBindingContextAccessor,
     ITempDataDictionary tempData)
 {
     _controllerFactory = controllerFactory;
     _inputFormattersProvider = inputFormattersProvider;
     _filterProviders = filterProviders.OrderBy(item => item.Order).ToArray();
     _argumentBinder = argumentBinder;
     _modelBinderProvider = modelBinderProvider;
     _modelValidationProviderProvider = modelValidationProviderProvider;
     _valueProviderFactoryProvider = valueProviderFactoryProvider;
     _actionBindingContextAccessor = actionBindingContextAccessor;
     _tempData = tempData;
 }
 public TestControllerActionInvoker(
     ActionContext actionContext,
     IFilterProvider[] filterProvider,
     MockControllerFactory controllerFactory,
     ControllerActionDescriptor descriptor,
     IInputFormattersProvider inputFormattersProvider,
     IControllerActionArgumentBinder controllerActionArgumentBinder,
     IModelBinderProvider modelBinderProvider,
     IModelValidatorProviderProvider modelValidatorProviderProvider,
     IValueProviderFactoryProvider valueProviderFactoryProvider,
     IScopedInstance<ActionBindingContext> actionBindingContext,
     ITempDataDictionary tempData)
     : base(
           actionContext,
           filterProvider,
           controllerFactory,
           descriptor,
           inputFormattersProvider,
           controllerActionArgumentBinder,
           modelBinderProvider,
           modelValidatorProviderProvider,
           valueProviderFactoryProvider,
           actionBindingContext,
           tempData)
 {
     ControllerFactory = controllerFactory;
 }