27 implementations of IModelBinderProvider
Microsoft.AspNetCore.Mvc.Core (19)
ModelBinding\Binders\ArrayModelBinderProvider.cs (1)
15
public class ArrayModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\BinderTypeModelBinderProvider.cs (1)
12
public class BinderTypeModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\BodyModelBinderProvider.cs (1)
17
public class BodyModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\ByteArrayModelBinderProvider.cs (1)
14
public class ByteArrayModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\CancellationTokenModelBinderProvider.cs (1)
11
public class CancellationTokenModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\CollectionModelBinderProvider.cs (1)
16
public class CollectionModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (1)
14
public class ComplexObjectModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\ComplexTypeModelBinderProvider.cs (1)
15
public class ComplexTypeModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\DateTimeModelBinderProvider.cs (1)
15
public class DateTimeModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\DictionaryModelBinderProvider.cs (1)
16
public class DictionaryModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\EnumTypeModelBinderProvider.cs (1)
14
public class EnumTypeModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\FloatingPointTypeModelBinderProvider.cs (1)
16
public class FloatingPointTypeModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\FormCollectionModelBinderProvider.cs (1)
16
public class FormCollectionModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\FormFileModelBinderProvider.cs (1)
16
public class FormFileModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\HeaderModelBinderProvider.cs (1)
14
public partial class HeaderModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\KeyValuePairModelBinderProvider.cs (1)
14
public class KeyValuePairModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\ServicesModelBinderProvider.cs (1)
13
public class ServicesModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\SimpleTypeModelBinderProvider.cs (1)
14
public class SimpleTypeModelBinderProvider :
IModelBinderProvider
ModelBinding\Binders\TryParseModelBinderProvider.cs (1)
12
public sealed class TryParseModelBinderProvider :
IModelBinderProvider
Microsoft.AspNetCore.Mvc.Core.Test (5)
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
627
private class TestModelBinderProvider :
IModelBinderProvider
, IModelBinder
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1580
private class TestableComplexTypeModelBinderProvider :
IModelBinderProvider
ModelBinding\ModelBinderFactoryTest.cs (1)
676
private class TestModelBinderProvider :
IModelBinderProvider
ModelBinding\ModelBinderProviderExtensionsTest.cs (2)
46
private class FooModelBinderProvider :
IModelBinderProvider
54
private class BarModelBinderProvider :
IModelBinderProvider
Microsoft.AspNetCore.Mvc.IntegrationTests (3)
ActionParametersIntegrationTest.cs (1)
1081
private class CustomComplexTypeModelBinderProvider :
IModelBinderProvider
ExcludeBindingMetadataProviderIntegrationTest.cs (1)
126
public class TypeModelBinderProvider :
IModelBinderProvider
GenericModelBinderIntegrationTest.cs (1)
148
private class AddressBinderProvider :
IModelBinderProvider
60 references to IModelBinderProvider
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\IModelBinderProvider.cs (1)
7
/// Creates <see cref="IModelBinder"/> instances. Register <see cref="
IModelBinderProvider
"/>
ModelBinding\ModelBinderProviderContext.cs (1)
7
/// A context object for <see cref="
IModelBinderProvider
.GetBinder"/>.
Microsoft.AspNetCore.Mvc.Core (33)
ModelBinding\Binders\ArrayModelBinderProvider.cs (1)
13
/// An <see cref="
IModelBinderProvider
"/> for arrays.
ModelBinding\Binders\BinderTypeModelBinderProvider.cs (1)
9
/// An <see cref="
IModelBinderProvider
"/> for models which specify an <see cref="IModelBinder"/>
ModelBinding\Binders\BodyModelBinderProvider.cs (1)
15
/// An <see cref="
IModelBinderProvider
"/> for deserializing the request body using a formatter.
ModelBinding\Binders\ByteArrayModelBinderProvider.cs (1)
12
/// An <see cref="
IModelBinderProvider
"/> for binding base64 encoded byte arrays.
ModelBinding\Binders\CancellationTokenModelBinderProvider.cs (1)
9
/// An <see cref="
IModelBinderProvider
"/> for <see cref="CancellationToken"/>.
ModelBinding\Binders\CollectionModelBinderProvider.cs (1)
14
/// An <see cref="
IModelBinderProvider
"/> for <see cref="ICollection{T}"/>.
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (1)
12
/// An <see cref="
IModelBinderProvider
"/> for complex types.
ModelBinding\Binders\ComplexTypeModelBinderProvider.cs (1)
12
/// An <see cref="
IModelBinderProvider
"/> for complex types.
ModelBinding\Binders\DateTimeModelBinderProvider.cs (1)
13
/// An <see cref="
IModelBinderProvider
"/> for binding <see cref="DateTime" /> and nullable <see cref="DateTime"/> models.
ModelBinding\Binders\DictionaryModelBinderProvider.cs (1)
14
/// An <see cref="
IModelBinderProvider
"/> for binding <see cref="IDictionary{TKey, TValue}"/>.
ModelBinding\Binders\EnumTypeModelBinderProvider.cs (1)
12
/// A <see cref="
IModelBinderProvider
"/> for types deriving from <see cref="Enum"/>.
ModelBinding\Binders\FloatingPointTypeModelBinderProvider.cs (1)
13
/// An <see cref="
IModelBinderProvider
"/> for binding <see cref="decimal"/>, <see cref="double"/>,
ModelBinding\Binders\FormCollectionModelBinderProvider.cs (1)
14
/// An <see cref="
IModelBinderProvider
"/> for <see cref="IFormCollection"/>.
ModelBinding\Binders\FormFileModelBinderProvider.cs (1)
13
/// An <see cref="
IModelBinderProvider
"/> for <see cref="IFormFile"/>, collections
ModelBinding\Binders\HeaderModelBinderProvider.cs (1)
12
/// An <see cref="
IModelBinderProvider
"/> for binding header values.
ModelBinding\Binders\KeyValuePairModelBinderProvider.cs (1)
12
/// An <see cref="
IModelBinderProvider
"/> for <see cref="KeyValuePair{TKey, TValue}"/>.
ModelBinding\Binders\ServicesModelBinderProvider.cs (1)
11
/// An <see cref="
IModelBinderProvider
"/> for binding from the <see cref="IServiceProvider"/>.
ModelBinding\Binders\SimpleTypeModelBinderProvider.cs (1)
12
/// An <see cref="
IModelBinderProvider
"/> for binding simple data types.
ModelBinding\Binders\TryParseModelBinderProvider.cs (1)
10
/// An <see cref="
IModelBinderProvider
"/> for binding types that have a TryParse method.
ModelBinding\ModelBinderFactory.cs (4)
25
private readonly
IModelBinderProvider
[] _providers;
60
typeof(
IModelBinderProvider
).FullName));
150
var
provider = _providers[i];
326
public static partial void RegisteredModelBinderProviders(ILogger logger,
IModelBinderProvider
[] modelBinderProviders);
ModelBinding\ModelBinderProviderExtensions.cs (7)
9
/// Extension methods for <see cref="
IModelBinderProvider
"/>.
16
/// <param name="list">The list of <see cref="
IModelBinderProvider
"/>s.</param>
18
public static void RemoveType<TModelBinderProvider>(this IList<
IModelBinderProvider
> list) where TModelBinderProvider :
IModelBinderProvider
28
/// <param name="list">The list of <see cref="
IModelBinderProvider
"/>s.</param>
30
public static void RemoveType(this IList<
IModelBinderProvider
> list, Type type)
37
var
modelBinderProvider = list[i];
MvcOptions.cs (3)
46
ModelBinderProviders = new List<
IModelBinderProvider
>();
163
/// Gets a list of <see cref="
IModelBinderProvider
"/>s used by this application.
165
public IList<
IModelBinderProvider
> ModelBinderProviders { get; }
Microsoft.AspNetCore.Mvc.Core.Test (17)
Controllers\ControllerBinderDelegateProviderTest.cs (3)
1211
var
modelBinderProvider = Mock.Of<
IModelBinderProvider
>();
1317
var provider = new Mock<
IModelBinderProvider
>();
ModelBinding\ModelBinderFactoryTest.cs (1)
21
$"empty. At least one '{typeof(
IModelBinderProvider
).FullName}' is required to model bind.";
ModelBinding\ModelBinderProviderExtensionsTest.cs (4)
12
var list = new List<
IModelBinderProvider
>
23
var
provider = Assert.Single(list);
31
var list = new List<
IModelBinderProvider
>
42
var
provider = Assert.Single(list);
ModelBinding\ModelBindingHelperTest.cs (9)
50
var binderProviders = new
IModelBinderProvider
[]
92
var binderProviders = new
IModelBinderProvider
[]
158
var binderProviders = new
IModelBinderProvider
[]
238
var binderProviders = new
IModelBinderProvider
[]
289
var binderProviders = new
IModelBinderProvider
[]
488
var binderProviders = new
IModelBinderProvider
[]
568
var binderProviders = new
IModelBinderProvider
[]
771
var binderProvider = new Mock<
IModelBinderProvider
>();
779
private static ModelBinderFactory GetModelBinderFactory(params
IModelBinderProvider
[] providers)
Microsoft.AspNetCore.Mvc.Core.TestCommon (6)
TestModelBinderFactory.cs (6)
22
public static TestModelBinderFactory Create(params
IModelBinderProvider
[] providers)
29
params
IModelBinderProvider
[] providers)
37
foreach (
var
provider in providers)
44
public static TestModelBinderFactory CreateDefault(params
IModelBinderProvider
[] providers)
51
params
IModelBinderProvider
[] providers)
59
foreach (
var
provider in providers)
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
ModelBindingTestHelper.cs (2)
48
IModelBinderProvider
binderProvider = null)
85
IModelBinderProvider
binderProvider = null,