10 instantiations of ValueProviderFactoryContext
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\CompositeValueProvider.cs (1)
68
var valueProviderFactoryContext = new
ValueProviderFactoryContext
(actionContext);
Microsoft.AspNetCore.Mvc.Core.Test (9)
ModelBinding\FormFileValueProviderFactoryTest.cs (2)
109
var valueProviderContext = new
ValueProviderFactoryContext
(actionContext);
120
return new
ValueProviderFactoryContext
(actionContext);
ModelBinding\FormValueProviderFactoryTest.cs (2)
97
var valueProviderContext = new
ValueProviderFactoryContext
(actionContext);
113
return new
ValueProviderFactoryContext
(actionContext);
ModelBinding\JQueryFormValueProviderFactoryTest.cs (2)
182
var valueProviderContext = new
ValueProviderFactoryContext
(actionContext);
198
return new
ValueProviderFactoryContext
(actionContext);
ModelBinding\JQueryQueryStringValueProviderFactoryTest.cs (1)
120
return new
ValueProviderFactoryContext
(actionContext);
ModelBinding\QueryStringValueProviderFactoryTest.cs (2)
19
var factoryContext = new
ValueProviderFactoryContext
(actionContext);
38
var factoryContext = new
ValueProviderFactoryContext
(actionContext);
61 references to ValueProviderFactoryContext
BasicWebSite (4)
ValueProviders\CustomValueProviderFactory.cs (4)
11
public Task CreateValueProviderAsync(
ValueProviderFactoryContext
context)
19
private static readonly Dictionary<string, Func<
ValueProviderFactoryContext
, StringValues>> Values = new()
27
private readonly
ValueProviderFactoryContext
_context;
29
public CustomValueProvider(
ValueProviderFactoryContext
context)
Microsoft.AspNetCore.Mvc.Abstractions (5)
ModelBinding\IValueProviderFactory.cs (4)
13
/// and adds it to <see cref="
ValueProviderFactoryContext
.ValueProviders"/> list.
15
/// <param name="context">The <see cref="
ValueProviderFactoryContext
"/>.</param>
17
/// to <see cref="
ValueProviderFactoryContext
.ValueProviders"/> list if applicable.</returns>
18
Task CreateValueProviderAsync(
ValueProviderFactoryContext
context);
ModelBinding\ValueProviderFactoryContext.cs (1)
12
/// Creates a new <see cref="
ValueProviderFactoryContext
"/>.
Microsoft.AspNetCore.Mvc.Core (10)
ModelBinding\CompositeValueProvider.cs (1)
68
var
valueProviderFactoryContext = new ValueProviderFactoryContext(actionContext);
ModelBinding\FormFileValueProviderFactory.cs (2)
17
public Task CreateValueProviderAsync(
ValueProviderFactoryContext
context)
31
private static async Task AddValueProviderAsync(
ValueProviderFactoryContext
context, HttpRequest request)
ModelBinding\FormValueProviderFactory.cs (2)
18
public Task CreateValueProviderAsync(
ValueProviderFactoryContext
context)
32
private static async Task AddValueProviderAsync(
ValueProviderFactoryContext
context)
ModelBinding\JQueryFormValueProviderFactory.cs (2)
18
public Task CreateValueProviderAsync(
ValueProviderFactoryContext
context)
32
private static async Task AddValueProviderAsync(
ValueProviderFactoryContext
context)
ModelBinding\JQueryQueryStringValueProviderFactory.cs (1)
16
public Task CreateValueProviderAsync(
ValueProviderFactoryContext
context)
ModelBinding\QueryStringValueProviderFactory.cs (1)
17
public Task CreateValueProviderAsync(
ValueProviderFactoryContext
context)
ModelBinding\RouteValueProviderFactory.cs (1)
14
public Task CreateValueProviderAsync(
ValueProviderFactoryContext
context)
Microsoft.AspNetCore.Mvc.Core.Test (38)
ControllerBaseTest.cs (1)
2697
valueProviderFactory.Setup(f => f.CreateValueProviderAsync(It.IsAny<
ValueProviderFactoryContext
>()))
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1222
valueProviderFactory.Setup(f => f.CreateValueProviderAsync(It.IsAny<
ValueProviderFactoryContext
>()))
ModelBinding\CompositeValueProviderTest.cs (1)
51
factory.Setup(f => f.CreateValueProviderAsync(It.IsAny<
ValueProviderFactoryContext
>())).ThrowsAsync(new ValueProviderException("Some error"));
ModelBinding\FormFileValueProviderFactoryTest.cs (9)
19
var
context = CreateContext("application/json");
33
var
context = CreateContext("multipart/form-data");
47
var
context = CreateContext("multipart/form-data; boundary=----WebKitFormBoundarymx2fSWqWSd0OxQqq");
65
var
valueProviderContext = CreateThrowingContext(exception);
79
var
valueProviderContext = CreateThrowingContext(exception);
93
var
valueProviderContext = CreateThrowingContext(exception);
102
private static
ValueProviderFactoryContext
CreateThrowingContext(Exception exception)
109
var
valueProviderContext = new ValueProviderFactoryContext(actionContext);
113
private static
ValueProviderFactoryContext
CreateContext(string contentType)
ModelBinding\FormValueProviderFactoryTest.cs (8)
19
var
context = CreateContext("some-content-type");
37
var
context = CreateContext(contentType);
53
var
valueProviderContext = CreateThrowingContext(exception);
67
var
valueProviderContext = CreateThrowingContext(exception);
81
var
valueProviderContext = CreateThrowingContext(exception);
90
private static
ValueProviderFactoryContext
CreateThrowingContext(Exception exception)
97
var
valueProviderContext = new ValueProviderFactoryContext(actionContext);
101
private static
ValueProviderFactoryContext
CreateContext(string contentType)
ModelBinding\JQueryFormValueProviderFactoryTest.cs (10)
43
var
context = CreateContext("some-content-type", formValues: null);
61
var
context = CreateContext(contentType, formValues: null);
105
var
context = CreateContext("application/x-www-form-urlencoded", formValues: _backingStore);
121
var
context = CreateContext("application/x-www-form-urlencoded", formValues: _backingStore);
138
var
valueProviderContext = CreateThrowingContext(exception);
152
var
valueProviderContext = CreateThrowingContext(exception);
166
var
valueProviderContext = CreateThrowingContext(exception);
175
private static
ValueProviderFactoryContext
CreateThrowingContext(Exception exception)
182
var
valueProviderContext = new ValueProviderFactoryContext(actionContext);
186
private static
ValueProviderFactoryContext
CreateContext(string contentType, Dictionary<string, StringValues> formValues)
ModelBinding\JQueryQueryStringValueProviderFactoryTest.cs (4)
71
var
context = CreateContext(_backingStore);
87
var
context = CreateContext(new Dictionary<string, StringValues>());
101
var
context = CreateContext(_backingStore);
113
private static
ValueProviderFactoryContext
CreateContext(Dictionary<string, StringValues> queryStringValues)
ModelBinding\QueryStringValueProviderFactoryTest.cs (2)
19
var
factoryContext = new ValueProviderFactoryContext(actionContext);
38
var
factoryContext = new ValueProviderFactoryContext(actionContext);
ModelBinding\ValueProviderFactoryExtensionsTest.cs (2)
48
public Task CreateValueProviderAsync(
ValueProviderFactoryContext
context)
56
public Task CreateValueProviderAsync(
ValueProviderFactoryContext
context)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
SimpleValueProviderFactory.cs (1)
22
public Task CreateValueProviderAsync(
ValueProviderFactoryContext
context)
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\PageBinderFactoryTest.cs (1)
734
valueProviderFactory.Setup(f => f.CreateValueProviderAsync(It.IsAny<
ValueProviderFactoryContext
>()))
PageModelTest.cs (1)
1756
valueProviderFactory.Setup(f => f.CreateValueProviderAsync(It.IsAny<
ValueProviderFactoryContext
>()))
PageTest.cs (1)
1834
valueProviderFactory.Setup(f => f.CreateValueProviderAsync(It.IsAny<
ValueProviderFactoryContext
>()))