1 override of ValueProvider
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\DefaultModelBindingContext.cs (1)
126
public override IValueProvider
ValueProvider
2 writes to ValueProvider
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Binders\CollectionModelBinder.cs (1)
281
bindingContext.
ValueProvider
= new CompositeValueProvider
ModelBinding\Binders\HeaderModelBinder.cs (1)
89
bindingContext.
ValueProvider
= headerValueProvider;
35 references to ValueProvider
BasicWebSite (1)
Controllers\ContactApiController.cs (1)
147
var val = bindingContext.
ValueProvider
.GetValue(bindingContext.ModelName);
FormatterWebSite (1)
PolymorphicBinder.cs (1)
15
DerivedProperty = bindingContext.
ValueProvider
.GetValue(nameof(DerivedModel.DerivedProperty)).FirstValue,
Microsoft.AspNetCore.Mvc.Core (16)
ModelBinding\Binders\ByteArrayModelBinder.cs (1)
36
var valueProviderResult = bindingContext.
ValueProvider
.GetValue(bindingContext.ModelName);
ModelBinding\Binders\CollectionModelBinder.cs (4)
112
if (!bindingContext.
ValueProvider
.ContainsPrefix(bindingContext.ModelName))
137
var valueProviderResult = bindingContext.
ValueProvider
.GetValue(bindingContext.ModelName);
270
var valueProvider = bindingContext.
ValueProvider
;
309
var valueProvider = bindingContext.
ValueProvider
;
ModelBinding\Binders\ComplexObjectModelBinder.cs (2)
604
if (bindingContext.
ValueProvider
.ContainsPrefix(bindingContext.ModelName))
640
if (bindingContext.
ValueProvider
.ContainsPrefix(bindingContext.ModelName))
ModelBinding\Binders\ComplexTypeModelBinder.cs (1)
405
if (bindingContext.
ValueProvider
.ContainsPrefix(bindingContext.ModelName))
ModelBinding\Binders\DateTimeModelBinder.cs (1)
40
var valueProviderResult = bindingContext.
ValueProvider
.GetValue(modelName);
ModelBinding\Binders\DecimalModelBinder.cs (1)
42
var valueProviderResult = bindingContext.
ValueProvider
.GetValue(modelName);
ModelBinding\Binders\DictionaryModelBinder.cs (1)
129
if (bindingContext.
ValueProvider
is not IEnumerableValueProvider enumerableValueProvider)
ModelBinding\Binders\DoubleModelBinder.cs (1)
42
var valueProviderResult = bindingContext.
ValueProvider
.GetValue(modelName);
ModelBinding\Binders\FloatModelBinder.cs (1)
42
var valueProviderResult = bindingContext.
ValueProvider
.GetValue(modelName);
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
41
var valueProviderResult = bindingContext.
ValueProvider
.GetValue(bindingContext.ModelName);
ModelBinding\Binders\TryParseModelBinder.cs (1)
49
var valueProviderResult = bindingContext.
ValueProvider
.GetValue(bindingContext.ModelName);
ModelBinding\ParameterBinder.cs (1)
121
else if (modelBindingContext.
ValueProvider
.ContainsPrefix(parameter.Name))
Microsoft.AspNetCore.Mvc.Core.Test (15)
ControllerBaseTest.cs (11)
2617
Assert.Same(valueProvider, Assert.IsType<CompositeValueProvider>(context.
ValueProvider
)[0]);
2645
Assert.Same(valueProvider, Assert.IsType<CompositeValueProvider>(context.
ValueProvider
)[0]);
2672
Assert.Same(valueProvider, context.
ValueProvider
);
2728
Assert.Same(valueProvider, Assert.IsType<CompositeValueProvider>(context.
ValueProvider
)[0]);
2761
Assert.Same(valueProvider, context.
ValueProvider
);
2795
Assert.IsType<CompositeValueProvider>(context.
ValueProvider
)[0]);
2827
Assert.Same(valueProvider.Object, context.
ValueProvider
);
2859
Assert.IsType<CompositeValueProvider>(context.
ValueProvider
)[0]);
2911
Assert.Same(valueProvider, context.
ValueProvider
);
2941
Assert.Same(valueProvider, Assert.IsType<CompositeValueProvider>(context.
ValueProvider
)[0]);
2969
Assert.Same(valueProvider, Assert.IsType<CompositeValueProvider>(context.
ValueProvider
)[0]);
ModelBinding\Binders\CollectionModelBinderTest.cs (1)
501
var value = context.
ValueProvider
.GetValue(context.ModelName);
ModelBinding\DefaultModelBindingContextTest.cs (3)
81
Assert.IsType<CompositeValueProvider>(context.
ValueProvider
),
109
Assert.IsType<CompositeValueProvider>(context.
ValueProvider
),
138
Assert.IsType<CompositeValueProvider>(context.
ValueProvider
),
RazorPagesWebSite (2)
PolymorphicModelBinder.cs (2)
13
var ageValue = bindingContext.
ValueProvider
.GetValue(nameof(UserModel.Age));
22
Name = bindingContext.
ValueProvider
.GetValue(nameof(UserModel.Name)).FirstValue,