1 implementation of IModelBinderFactory
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\ModelBinderFactory.cs (1)
22
public partial class ModelBinderFactory :
IModelBinderFactory
49 references to IModelBinderFactory
Microsoft.AspNetCore.Mvc.Core (23)
ControllerBase.cs (4)
29
private
IModelBinderFactory
? _modelBinderFactory;
111
/// Gets or sets the <see cref="
IModelBinderFactory
"/>.
114
public
IModelBinderFactory
ModelBinderFactory
120
_modelBinderFactory = HttpContext?.RequestServices?.GetRequiredService<
IModelBinderFactory
>();
Controllers\ControllerBinderDelegateProvider.cs (3)
16
IModelBinderFactory
modelBinderFactory,
117
IModelBinderFactory
modelBinderFactory,
163
IModelBinderFactory
modelBinderFactory,
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
214
services.TryAddSingleton<
IModelBinderFactory
, ModelBinderFactory>();
Infrastructure\ControllerActionInvokerCache.cs (2)
18
private readonly
IModelBinderFactory
_modelBinderFactory;
26
IModelBinderFactory
modelBinderFactory,
ModelBinding\ModelBindingHelper.cs (10)
32
/// <param name="modelBinderFactory">The <see cref="
IModelBinderFactory
"/> used for binding.</param>
42
IModelBinderFactory
modelBinderFactory,
70
/// <param name="modelBinderFactory">The <see cref="
IModelBinderFactory
"/> used for binding.</param>
82
IModelBinderFactory
modelBinderFactory,
115
/// <param name="modelBinderFactory">The <see cref="
IModelBinderFactory
"/> used for binding.</param>
128
IModelBinderFactory
modelBinderFactory,
157
/// <param name="modelBinderFactory">The <see cref="
IModelBinderFactory
"/> used for binding.</param>
168
IModelBinderFactory
modelBinderFactory,
196
/// <param name="modelBinderFactory">The <see cref="
IModelBinderFactory
"/> used for binding.</param>
209
IModelBinderFactory
modelBinderFactory,
ModelBinding\ParameterBinder.cs (3)
18
private readonly
IModelBinderFactory
_modelBinderFactory;
25
/// <param name="modelBinderFactory">The <see cref="
IModelBinderFactory
"/>.</param>
32
IModelBinderFactory
modelBinderFactory,
Microsoft.AspNetCore.Mvc.Core.Test (11)
ControllerBaseTest.cs (1)
3220
var binderFactory = new Mock<
IModelBinderFactory
>();
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1327
IModelBinderFactory
factory = null,
ModelBinding\ParameterBinderTest.cs (9)
323
Mock.Of<
IModelBinderFactory
>(),
378
Mock.Of<
IModelBinderFactory
>(),
433
Mock.Of<
IModelBinderFactory
>(),
487
Mock.Of<
IModelBinderFactory
>(),
546
Mock.Of<
IModelBinderFactory
>(),
608
Mock.Of<
IModelBinderFactory
>(),
675
Mock.Of<
IModelBinderFactory
>(),
751
var mockModelBinderFactory = new Mock<
IModelBinderFactory
>(MockBehavior.Strict);
794
var mockModelBinderFactory = new Mock<
IModelBinderFactory
>(MockBehavior.Strict);
Microsoft.AspNetCore.Mvc.IntegrationTests (5)
BindPropertyIntegrationTest.cs (1)
218
var
modelBinderFactory = ModelBindingTestHelper.GetModelBinderFactory(modelMetadataProvider);
ComplexRecordIntegrationTest.cs (1)
4251
var
factory = ModelBindingTestHelper.GetModelBinderFactory(
ComplexTypeIntegrationTestBase.cs (1)
3750
var
factory = ModelBindingTestHelper.GetModelBinderFactory(
ModelBindingTestHelper.cs (1)
110
public static
IModelBinderFactory
GetModelBinderFactory(
ParameterBinderExtensions.cs (1)
63
var
modelBinderFactory = ModelBindingTestHelper.GetModelBinderFactory(
Microsoft.AspNetCore.Mvc.RazorPages (10)
Infrastructure\PageActionInvokerCache.cs (2)
17
private readonly
IModelBinderFactory
_modelBinderFactory;
30
IModelBinderFactory
modelBinderFactory)
Infrastructure\PageBinderFactory.cs (2)
16
IModelBinderFactory
modelBinderFactory,
85
IModelBinderFactory
modelBinderFactory,
PageBase.cs (3)
29
private
IModelBinderFactory
? _modelBinderFactory;
91
private
IModelBinderFactory
ModelBinderFactory
97
_modelBinderFactory = HttpContext?.RequestServices?.GetRequiredService<
IModelBinderFactory
>();
PageModel.cs (3)
29
private
IModelBinderFactory
? _modelBinderFactory;
165
private
IModelBinderFactory
ModelBinderFactory
171
_modelBinderFactory = HttpContext?.RequestServices?.GetRequiredService<
IModelBinderFactory
>();