16 writes to DataAnnotationLocalizerProvider
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
TestModelMetadataProvider.cs (1)
19localizationOptions.Value.DataAnnotationLocalizerProvider = (modelType, localizerFactory) => localizerFactory.Create(modelType);
TestModelValidatorProvider.cs (1)
16options.Value.DataAnnotationLocalizerProvider = (modelType, localizerFactory) => localizerFactory.Create(modelType);
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DependencyInjection\MvcDataAnnotationsLocalizationOptionsSetup.cs (1)
19options.DataAnnotationLocalizerProvider = (modelType, stringLocalizerFactory) =>
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
DataAnnotationsMetadataProviderTest.cs (6)
269localizationOptions.DataAnnotationLocalizerProvider = (type, stringLocalizerFactory) => 307localizationOptions.DataAnnotationLocalizerProvider = (type, stringLocalizerFactory) => 340localizationOptions.DataAnnotationLocalizerProvider = (type, stringLocalizerFactory) => 577localizationOptions.DataAnnotationLocalizerProvider = (type, stringLocalizerFactory) => 845localizationOptions.DataAnnotationLocalizerProvider = (modelType, stringLocalizerFactory) => stringLocalizerFactory.Create(modelType); 1722localizationOptions.DataAnnotationLocalizerProvider = (modelType, localizerFactory) => localizerFactory.Create(modelType);
Microsoft.AspNetCore.Mvc.Localization.Test (2)
MvcLocalizationMvcBuilderExtensionsTest.cs (1)
117=> options.DataAnnotationLocalizerProvider = dataAnnotationLocalizerProvider);
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (1)
117=> options.DataAnnotationLocalizerProvider = dataAnnotationLocalizerProvider);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
RemoteAttributeBaseTest.cs (4)
226options.Value.DataAnnotationLocalizerProvider = (type, factory) => localizer.Object; 272options.Value.DataAnnotationLocalizerProvider = (type, factory) => localizer.Object; 317options.Value.DataAnnotationLocalizerProvider = (type, factory) => localizer.Object; 409options.Value.DataAnnotationLocalizerProvider = (type, factory) => localizer.Object;
RazorWebSite (1)
StartupDataAnnotations.cs (1)
21options.DataAnnotationLocalizerProvider =
11 references to DataAnnotationLocalizerProvider
Microsoft.AspNetCore.Mvc.DataAnnotations (8)
DataAnnotationsClientModelValidatorProvider.cs (2)
49if (_options.Value.DataAnnotationLocalizerProvider != null && _stringLocalizerFactory != null) 53stringLocalizer = _options.Value.DataAnnotationLocalizerProvider(
DataAnnotationsMetadataProvider.cs (4)
98if (_stringLocalizerFactory != null && _localizationOptions.DataAnnotationLocalizerProvider != null) 100localizer = _localizationOptions.DataAnnotationLocalizerProvider(containerType, _stringLocalizerFactory); 179if (_stringLocalizerFactory != null && _localizationOptions.DataAnnotationLocalizerProvider != null) 181enumLocalizer = _localizationOptions.DataAnnotationLocalizerProvider(underlyingType, _stringLocalizerFactory);
DataAnnotationsModelValidatorProvider.cs (2)
47if (_stringLocalizerFactory != null && _options.Value.DataAnnotationLocalizerProvider != null) 49stringLocalizer = _options.Value.DataAnnotationLocalizerProvider(
Microsoft.AspNetCore.Mvc.Localization.Test (2)
MvcLocalizationMvcBuilderExtensionsTest.cs (1)
122Assert.Same(dataAnnotationLocalizerProvider, actualOptions.Value.DataAnnotationLocalizerProvider);
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (1)
122Assert.Same(dataAnnotationLocalizerProvider, actualOptions.Value.DataAnnotationLocalizerProvider);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
RemoteAttributeBase.cs (1)
183var provider = options.Value.DataAnnotationLocalizerProvider;