16 instantiations of CompositeValueProvider
Microsoft.AspNetCore.Mvc.Core (6)
ModelBinding\Binders\CollectionModelBinder.cs (2)
24
private static readonly IValueProvider EmptyValueProvider = new
CompositeValueProvider
();
281
bindingContext.ValueProvider = new
CompositeValueProvider
ModelBinding\CompositeValueProvider.cs (3)
76
return new
CompositeValueProvider
(valueProviderFactoryContext.ValueProviders);
202
return new
CompositeValueProvider
(filteredValueProviders);
254
return new
CompositeValueProvider
(filteredValueProviders);
ModelBinding\DefaultModelBindingContext.cs (1)
18
private static readonly IValueProvider EmptyValueProvider = new
CompositeValueProvider
();
Microsoft.AspNetCore.Mvc.Core.Test (10)
ModelBinding\CompositeValueProviderTest.cs (9)
43
return new
CompositeValueProvider
() { emptyValueProvider, valueProvider };
78
var provider = new
CompositeValueProvider
() { provider1, provider2.Object };
96
var provider = new
CompositeValueProvider
() { provider1, provider2 };
124
var provider = new
CompositeValueProvider
() { valueProvider1.Object, valueProvider2.Object };
153
new
CompositeValueProvider
(),
155
new
CompositeValueProvider
(noneRewrite),
156
new
CompositeValueProvider
(noneImplement),
181
var provider = new
CompositeValueProvider
(allRewrite);
217
var provider = new
CompositeValueProvider
(providers);
ModelBinding\DefaultModelBindingContextTest.cs (1)
171
var result = new
CompositeValueProvider
();
359 references to CompositeValueProvider
Microsoft.AspNetCore.Mvc.Core (16)
ControllerBase.cs (4)
2552
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(ControllerContext, ControllerContext.ValueProviderFactories);
2613
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(ControllerContext, ControllerContext.ValueProviderFactories);
2650
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(ControllerContext, ControllerContext.ValueProviderFactories);
2754
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(ControllerContext, ControllerContext.ValueProviderFactories);
Controllers\ControllerBinderDelegateProvider.cs (1)
54
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(controllerContext, controllerContext.ValueProviderFactories);
ModelBinding\CompositeValueProvider.cs (11)
20
/// Initializes a new instance of <see cref="
CompositeValueProvider
"/>.
27
/// Initializes a new instance of <see cref="
CompositeValueProvider
"/>.
30
/// <see cref="
CompositeValueProvider
"/>.</param>
37
/// Asynchronously creates a <see cref="
CompositeValueProvider
"/> using the provided
43
/// <see cref="
CompositeValueProvider
"/>.
45
public static async Task<
CompositeValueProvider
> CreateAsync(ControllerContext controllerContext)
55
/// Asynchronously creates a <see cref="
CompositeValueProvider
"/> using the provided
62
/// <see cref="
CompositeValueProvider
"/>.
64
public static async Task<
CompositeValueProvider
> CreateAsync(
79
internal static async ValueTask<(bool success,
CompositeValueProvider
? valueProvider)> TryCreateAsync(
85
var
valueProvider = await CreateAsync(actionContext, factories);
Microsoft.AspNetCore.Mvc.Core.Test (33)
ControllerBaseTest.cs (7)
2617
Assert.Same(valueProvider, Assert.IsType<
CompositeValueProvider
>(context.ValueProvider)[0]);
2645
Assert.Same(valueProvider, Assert.IsType<
CompositeValueProvider
>(context.ValueProvider)[0]);
2728
Assert.Same(valueProvider, Assert.IsType<
CompositeValueProvider
>(context.ValueProvider)[0]);
2795
Assert.IsType<
CompositeValueProvider
>(context.ValueProvider)[0]);
2859
Assert.IsType<
CompositeValueProvider
>(context.ValueProvider)[0]);
2941
Assert.Same(valueProvider, Assert.IsType<
CompositeValueProvider
>(context.ValueProvider)[0]);
2969
Assert.Same(valueProvider, Assert.IsType<
CompositeValueProvider
>(context.ValueProvider)[0]);
ModelBinding\CompositeValueProviderTest.cs (18)
20
var originalProviders = ((
CompositeValueProvider
)provider).ToArray();
31
var
newProvider = Assert.IsType<
CompositeValueProvider
>(result);
55
var (success, result) = await
CompositeValueProvider
.TryCreateAsync(actionContext, new[] { factory.Object });
78
var
provider = new CompositeValueProvider() { provider1, provider2.Object };
96
var
provider = new CompositeValueProvider() { provider1, provider2 };
124
var
provider = new CompositeValueProvider() { valueProvider1.Object, valueProvider2.Object };
130
var
valueProvider = Assert.IsType<
CompositeValueProvider
>(result);
137
public static TheoryData<
CompositeValueProvider
> Filter_ReturnsProviderData
150
return new TheoryData<
CompositeValueProvider
>
163
public void Filter_ReturnsProvider(
CompositeValueProvider
provider)
172
var
newProvider = Assert.IsType<
CompositeValueProvider
>(result);
181
var
provider = new CompositeValueProvider(allRewrite);
217
var
provider = new CompositeValueProvider(providers);
224
var
newProvider = Assert.IsType<
CompositeValueProvider
>(result);
ModelBinding\DefaultModelBindingContextTest.cs (8)
69
var
original = CreateDefaultValueProvider();
81
Assert.IsType<
CompositeValueProvider
>(context.ValueProvider),
94
var
original = CreateDefaultValueProvider();
109
Assert.IsType<
CompositeValueProvider
>(context.ValueProvider),
122
var
original = CreateDefaultValueProvider();
138
Assert.IsType<
CompositeValueProvider
>(context.ValueProvider),
169
private static
CompositeValueProvider
CreateDefaultValueProvider()
171
var
result = new CompositeValueProvider();
Microsoft.AspNetCore.Mvc.IntegrationTests (300)
ArrayModelBinderIntegrationTest.cs (2)
395
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
CollectionModelBinderIntegrationTest.cs (12)
992
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1021
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1078
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1116
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1144
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1193
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
ComplexRecordIntegrationTest.cs (156)
51
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
101
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
153
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
207
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
256
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
305
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
353
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
405
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
457
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
510
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
563
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
617
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
667
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
724
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
778
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
833
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
888
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
935
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
981
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1036
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1091
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1138
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1184
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1239
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1294
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1341
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1400
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1507
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1614
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1718
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1773
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1837
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1923
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1969
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2025
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2077
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2131
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2189
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2245
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2297
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2345
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2393
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2445
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2492
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2542
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2596
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2655
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2704
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2760
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2814
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2872
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2918
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2987
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3059
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3123
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3175
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3250
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3320
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3349
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3390
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3424
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3457
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3499
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3542
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3585
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3636
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3682
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3734
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3777
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3822
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3865
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3909
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3954
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3998
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
4039
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
4082
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
4127
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
4172
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
ComplexTypeIntegrationTestBase.cs (124)
88
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
138
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
190
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
239
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
288
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
346
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
398
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
450
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
513
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
566
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
620
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
670
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
727
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
786
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
841
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
896
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
943
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
994
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1049
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1104
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1151
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1202
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1257
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1312
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1359
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1436
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1543
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1650
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1759
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1814
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1869
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1918
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
1977
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2070
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2123
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2178
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2239
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2293
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2351
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2411
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2463
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2511
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2563
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2615
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2662
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2715
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2769
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2834
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2883
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
2951
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3005
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3065
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3122
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3195
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3274
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3345
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3397
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3479
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3555
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3594
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3641
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
3693
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
DictionaryModelBinderIntegrationTest.cs (2)
1221
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
ParameterBinderExtensions.cs (2)
62
var
valueProvider = await
CompositeValueProvider
.CreateAsync(context);
TryUpdateModelIntegrationTest.cs (2)
1359
var
valueProvider = await
CompositeValueProvider
.CreateAsync(testContext);
Microsoft.AspNetCore.Mvc.RazorPages (10)
Infrastructure\PageBinderFactory.cs (2)
48
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(pageContext, pageContext.ValueProviderFactories);
129
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(pageContext, pageContext.ValueProviderFactories);
PageBase.cs (4)
1302
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(PageContext, PageContext.ValueProviderFactories);
1361
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(PageContext, PageContext.ValueProviderFactories);
1397
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(PageContext, PageContext.ValueProviderFactories);
1498
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(PageContext, PageContext.ValueProviderFactories);
PageModel.cs (4)
207
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(PageContext, PageContext.ValueProviderFactories);
266
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(PageContext, PageContext.ValueProviderFactories);
302
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(PageContext, PageContext.ValueProviderFactories);
403
var (success, valueProvider) = await
CompositeValueProvider
.TryCreateAsync(PageContext, PageContext.ValueProviderFactories);