// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.ComponentModel.DataAnnotations; using Microsoft.Extensions.Localization; namespace Microsoft.AspNetCore.Mvc.DataAnnotations { /// /// Provider for supplying 's. /// public interface IValidationAttributeAdapterProvider { /// /// Returns the for the given . /// /// The to create an /// for. /// The which will be used to create messages. /// /// An for the given . IAttributeAdapter GetAttributeAdapter(ValidationAttribute attribute, IStringLocalizer stringLocalizer); } }