Ejemplo n.º 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");
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of <see cref="ApiDescriptionGroupCollectionProvider"/>.
 /// </summary>
 /// <param name="actionDescriptorCollectionProvider">
 /// The <see cref="IActionDescriptorsCollectionProvider"/>.
 /// </param>
 /// <param name="apiDescriptionProvider">
 /// The <see cref="INestedProviderManager{ApiDescriptionProviderContext}"/>.
 /// </param>
 public ApiDescriptionGroupCollectionProvider(
     IActionDescriptorsCollectionProvider actionDescriptorCollectionProvider,
     INestedProviderManager <ApiDescriptionProviderContext> apiDescriptionProvider)
 {
     _actionDescriptorCollectionProvider = actionDescriptorCollectionProvider;
     _apiDescriptionProvider             = apiDescriptionProvider;
 }
Ejemplo n.º 3
0
 public FilterActionInvoker(
     [NotNull] ActionContext actionContext,
     [NotNull] INestedProviderManager <FilterProviderContext> filterProvider)
 {
     ActionContext   = actionContext;
     _filterProvider = filterProvider;
 }
Ejemplo n.º 4
0
 public ReflectedActionInvokerProvider(IControllerFactory controllerFactory,
                                       IActionBindingContextProvider bindingProvider,
                                       INestedProviderManager <FilterProviderContext> filterProvider)
 {
     _controllerFactory = controllerFactory;
     _bindingProvider   = bindingProvider;
     _filterProvider    = filterProvider;
 }
Ejemplo n.º 5
0
 public ReflectedActionInvokerProvider(IControllerFactory controllerFactory,
                                       IActionBindingContextProvider bindingProvider,
                                       INestedProviderManager<FilterProviderContext> filterProvider)
 {
     _controllerFactory = controllerFactory;
     _bindingProvider = bindingProvider;
     _filterProvider = filterProvider;
 }
 public GenericControllerActionInvokerProvider(
     IControllerFactory controllerFactory,
     INestedProviderManager <FilterProviderContext> filterProvider,
     IControllerActionArgumentBinder argumentBinder)
 {
     _controllerFactory = controllerFactory;
     _filterProvider    = filterProvider;
     _argumentBinder    = argumentBinder;
 }
 public ControllerActionInvokerProvider(IControllerFactory controllerFactory,
                                        IInputFormattersProvider inputFormattersProvider,
                                        INestedProviderManager <FilterProviderContext> filterProvider,
                                        IControllerActionArgumentBinder actionInvocationInfoProvider)
 {
     _controllerFactory            = controllerFactory;
     _inputFormattersProvider      = inputFormattersProvider;
     _filterProvider               = filterProvider;
     _actionInvocationInfoProvider = actionInvocationInfoProvider;
 }
Ejemplo n.º 8
0
 public DefaultActionSelector(
     [NotNull] IActionDescriptorsCollectionProvider actionDescriptorsCollectionProvider,
     [NotNull] IActionSelectorDecisionTreeProvider decisionTreeProvider,
     [NotNull] INestedProviderManager <ActionConstraintProviderContext> actionConstraintProvider,
     [NotNull] ILoggerFactory loggerFactory)
 {
     _actionDescriptorsCollectionProvider = actionDescriptorsCollectionProvider;
     _decisionTreeProvider     = decisionTreeProvider;
     _actionConstraintProvider = actionConstraintProvider;
     _logger = loggerFactory.Create <DefaultActionSelector>();
 }
Ejemplo n.º 9
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;
        }
Ejemplo n.º 10
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");
     }
 }
Ejemplo n.º 11
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;
 }
Ejemplo n.º 12
0
 public ActionInvokerFactory(INestedProviderManager <ActionInvokerProviderContext> actionInvokerProvider)
 {
     _actionInvokerProvider = actionInvokerProvider;
 }
Ejemplo n.º 13
0
 public ActionInvokerFactory(INestedProviderManager<ActionInvokerProviderContext> actionInvokerProvider)
 {
     _actionInvokerProvider = actionInvokerProvider;
 }
Ejemplo n.º 14
0
 public DefaultViewComponentInvokerFactory(
     INestedProviderManager <ViewComponentInvokerProviderContext> providerManager)
 {
     _providerManager = providerManager;
 }
Ejemplo n.º 15
0
 public DefaultViewComponentInvokerFactory(
     INestedProviderManager<ViewComponentInvokerProviderContext> providerManager)
 {
     _providerManager = providerManager;
 }