public DefaultActionBindingContextProvider(IModelMetadataProvider modelMetadataProvider,
                                            ICompositeModelBinder compositeModelBinder,
                                            ICompositeValueProviderFactory compositeValueProviderFactory,
                                            IInputFormatterProvider inputFormatterProvider,
                                            IEnumerable<IModelValidatorProvider> validatorProviders)
 {
     _modelMetadataProvider = modelMetadataProvider;
     _compositeModelBinder = compositeModelBinder;
     _compositeValueProviderFactory = compositeValueProviderFactory;
     _inputFormatterProvider = inputFormatterProvider;
     _validatorProviders = validatorProviders;
 }
 public DefaultActionBindingContextProvider(IModelMetadataProvider modelMetadataProvider,
                                            ICompositeModelBinder compositeModelBinder,
                                            ICompositeValueProviderFactory compositeValueProviderFactory,
                                            IInputFormatterProvider inputFormatterProvider,
                                            IEnumerable <IModelValidatorProvider> validatorProviders)
 {
     _modelMetadataProvider         = modelMetadataProvider;
     _compositeModelBinder          = compositeModelBinder;
     _compositeValueProviderFactory = compositeValueProviderFactory;
     _inputFormatterProvider        = inputFormatterProvider;
     _validatorProviders            = validatorProviders;
 }
Exemplo n.º 3
0
 public ActionBindingContext(ActionContext context,
                             IModelMetadataProvider metadataProvider,
                             IModelBinder modelBinder,
                             IValueProvider valueProvider,
                             IInputFormatterProvider inputFormatterProvider,
                             IEnumerable <IModelValidatorProvider> validatorProviders)
 {
     ActionContext          = context;
     MetadataProvider       = metadataProvider;
     ModelBinder            = modelBinder;
     ValueProvider          = valueProvider;
     InputFormatterProvider = inputFormatterProvider;
     ValidatorProviders     = validatorProviders;
 }