1 implementation of IAttributeAdapter
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
AttributeAdapterBase.cs (1)
17
IAttributeAdapter
15 references to IAttributeAdapter
Microsoft.AspNetCore.Mvc.DataAnnotations (13)
DataAnnotationsClientModelValidatorProvider.cs (2)
28
/// that supplies <see cref="
IAttributeAdapter
"/>s.</param>
81
var
adapter = _validationAttributeAdapterProvider.GetAttributeAdapter(attribute, stringLocalizer);
DataAnnotationsModelValidator.cs (1)
134
var
adapter = _validationAttributeAdapterProvider.GetAttributeAdapter(Attribute, _stringLocalizer);
DataAnnotationsModelValidatorProvider.cs (1)
26
/// that supplies <see cref="
IAttributeAdapter
"/>s.</param>
IValidationAttributeAdapterProvider.cs (5)
10
/// Provider for supplying <see cref="
IAttributeAdapter
"/>'s.
15
/// Returns the <see cref="
IAttributeAdapter
"/> for the given <see cref=" ValidationAttribute"/>.
17
/// <param name="attribute">The <see cref="ValidationAttribute"/> to create an <see cref="
IAttributeAdapter
"/>
21
/// <returns>An <see cref="
IAttributeAdapter
"/> for the given <paramref name="attribute"/>.</returns>
22
IAttributeAdapter
? GetAttributeAdapter(ValidationAttribute attribute, IStringLocalizer? stringLocalizer);
ValidationAttributeAdapterProvider.cs (4)
10
/// Creates an <see cref="
IAttributeAdapter
"/> for the given attribute.
15
/// Creates an <see cref="
IAttributeAdapter
"/> for the given attribute.
19
/// <returns>An <see cref="
IAttributeAdapter
"/> for the given attribute.</returns>
20
public
IAttributeAdapter
? GetAttributeAdapter(ValidationAttribute attribute, IStringLocalizer? stringLocalizer)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
ValidationAttributeAdapterProviderTest.cs (2)
58
var
adapter = _validationAttributeAdapterProvider.GetAttributeAdapter(attribute, stringLocalizer: null);
84
var
adapter = _validationAttributeAdapterProvider.GetAttributeAdapter(attribute, stringLocalizer: null);