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