35 instantiations of MvcDataAnnotationsLocalizationOptions
Microsoft.AspNetCore.Mvc.Core.Test (8)
ControllerBaseTest.cs (1)
3209Options.Create(new MvcDataAnnotationsLocalizationOptions()),
ModelBinding\ModelBindingHelperTest.cs (7)
58Options.Create(new MvcDataAnnotationsLocalizationOptions()), 100Options.Create(new MvcDataAnnotationsLocalizationOptions()), 166Options.Create(new MvcDataAnnotationsLocalizationOptions()), 246Options.Create(new MvcDataAnnotationsLocalizationOptions()), 297Options.Create(new MvcDataAnnotationsLocalizationOptions()), 496Options.Create(new MvcDataAnnotationsLocalizationOptions()), 576Options.Create(new MvcDataAnnotationsLocalizationOptions()),
Microsoft.AspNetCore.Mvc.Core.TestCommon (5)
TestClientModelValidatorProvider.cs (1)
19Options.Create(new MvcDataAnnotationsLocalizationOptions()),
TestModelMetadataProvider.cs (3)
18var localizationOptions = Options.Create(new MvcDataAnnotationsLocalizationOptions()); 52Options.Create(new MvcDataAnnotationsLocalizationOptions()), 95Options.Create(new MvcDataAnnotationsLocalizationOptions()),
TestModelValidatorProvider.cs (1)
15var options = Options.Create(new MvcDataAnnotationsLocalizationOptions());
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (19)
DataAnnotationsClientModelValidatorProviderTest.cs (5)
21Options.Create(new MvcDataAnnotationsLocalizationOptions()), 44Options.Create(new MvcDataAnnotationsLocalizationOptions()), 75Options.Create(new MvcDataAnnotationsLocalizationOptions()), 97Options.Create(new MvcDataAnnotationsLocalizationOptions()), 121Options.Create(new MvcDataAnnotationsLocalizationOptions()),
DataAnnotationsMetadataProviderTest.cs (7)
268var localizationOptions = new MvcDataAnnotationsLocalizationOptions(); 306var localizationOptions = new MvcDataAnnotationsLocalizationOptions(); 338var localizationOptions = new MvcDataAnnotationsLocalizationOptions(); 576var localizationOptions = new MvcDataAnnotationsLocalizationOptions(); 844var localizationOptions = new MvcDataAnnotationsLocalizationOptions(); 1702Options.Create(localizationOptions ?? new MvcDataAnnotationsLocalizationOptions()), 1721var localizationOptions = new MvcDataAnnotationsLocalizationOptions();
DataAnnotationsModelValidatorProviderTest.cs (5)
22Options.Create(new MvcDataAnnotationsLocalizationOptions()), 42Options.Create(new MvcDataAnnotationsLocalizationOptions()), 65Options.Create(new MvcDataAnnotationsLocalizationOptions()), 96Options.Create(new MvcDataAnnotationsLocalizationOptions()), 156Options.Create(new MvcDataAnnotationsLocalizationOptions()),
ModelMetadataProviderTest.cs (1)
1051Options.Create(new MvcDataAnnotationsLocalizationOptions()),
MvcDataAnnotationsMvcOptionsSetup.cs (1)
22Options.Create(new MvcDataAnnotationsLocalizationOptions()));
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
TestMvcOptions.cs (1)
24var dataAnnotationLocalizationOptions = Options.Create(new MvcDataAnnotationsLocalizationOptions());
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ControllerTest.cs (1)
440Options.Create(new MvcDataAnnotationsLocalizationOptions()),
Rendering\DefaultTemplatesUtilities.cs (1)
237var localizationOptions = new MvcDataAnnotationsLocalizationOptions();
56 references to MvcDataAnnotationsLocalizationOptions
Microsoft.AspNetCore.Mvc.DataAnnotations (19)
DataAnnotationsClientModelValidatorProvider.cs (2)
20private readonly IOptions<MvcDataAnnotationsLocalizationOptions> _options; 33IOptions<MvcDataAnnotationsLocalizationOptions> options,
DataAnnotationsLocalizationServices.cs (2)
14Action<MvcDataAnnotationsLocalizationOptions>? setupAction) 26<IConfigureOptions<MvcDataAnnotationsLocalizationOptions>,
DataAnnotationsMetadataProvider.cs (2)
26private readonly MvcDataAnnotationsLocalizationOptions _localizationOptions; 30IOptions<MvcDataAnnotationsLocalizationOptions> localizationOptions,
DataAnnotationsModelValidatorProvider.cs (2)
18private readonly IOptions<MvcDataAnnotationsLocalizationOptions> _options; 33IOptions<MvcDataAnnotationsLocalizationOptions> options,
DependencyInjection\MvcDataAnnotationsLocalizationOptionsSetup.cs (3)
10/// Sets up default options for <see cref="MvcDataAnnotationsLocalizationOptions"/>. 12internal sealed class MvcDataAnnotationsLocalizationOptionsSetup : IConfigureOptions<MvcDataAnnotationsLocalizationOptions> 15public void Configure(MvcDataAnnotationsLocalizationOptions options)
DependencyInjection\MvcDataAnnotationsMvcBuilderExtensions.cs (2)
29/// <param name="setupAction">The action to configure <see cref="MvcDataAnnotationsLocalizationOptions"/>. 34Action<MvcDataAnnotationsLocalizationOptions>? setupAction)
DependencyInjection\MvcDataAnnotationsMvcCoreBuilderExtensions.cs (3)
42/// Registers an action to configure <see cref="MvcDataAnnotationsLocalizationOptions"/> for MVC data 50Action<MvcDataAnnotationsLocalizationOptions>? setupAction) 69Action<MvcDataAnnotationsLocalizationOptions>? setupAction)
DependencyInjection\MvcDataAnnotationsMvcOptionsSetup.cs (3)
18private readonly IOptions<MvcDataAnnotationsLocalizationOptions> _dataAnnotationLocalizationOptions; 22IOptions<MvcDataAnnotationsLocalizationOptions> dataAnnotationLocalizationOptions) 33IOptions<MvcDataAnnotationsLocalizationOptions> dataAnnotationLocalizationOptions,
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (8)
DataAnnotationsMetadataProviderTest.cs (7)
268var localizationOptions = new MvcDataAnnotationsLocalizationOptions(); 306var localizationOptions = new MvcDataAnnotationsLocalizationOptions(); 338var localizationOptions = new MvcDataAnnotationsLocalizationOptions(); 576var localizationOptions = new MvcDataAnnotationsLocalizationOptions(); 844var localizationOptions = new MvcDataAnnotationsLocalizationOptions(); 1697MvcDataAnnotationsLocalizationOptions localizationOptions = null, 1721var localizationOptions = new MvcDataAnnotationsLocalizationOptions();
MvcDataAnnotationsMvcOptionsSetup.cs (1)
21services.AddSingleton<IOptions<MvcDataAnnotationsLocalizationOptions>>(
Microsoft.AspNetCore.Mvc.Localization (16)
DependencyInjection\MvcLocalizationMvcBuilderExtensions.cs (8)
179/// <see cref="MvcDataAnnotationsLocalizationOptions"/>.</param> 188Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction) 206/// <see cref="MvcDataAnnotationsLocalizationOptions"/>.</param> 216Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction) 233/// <see cref="MvcDataAnnotationsLocalizationOptions"/>.</param> 243Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction) 262/// the <see cref="MvcDataAnnotationsLocalizationOptions"/>. Can be <c>null</c>.</param> 273Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction)
DependencyInjection\MvcLocalizationMvcCoreBuilderExtensions.cs (8)
204/// the <see cref="MvcDataAnnotationsLocalizationOptions"/>.</param> 213Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction) 231/// <see cref="MvcDataAnnotationsLocalizationOptions"/>.</param> 241Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction) 258/// <see cref="MvcDataAnnotationsLocalizationOptions"/>.</param> 268Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction) 287/// the <see cref="MvcDataAnnotationsLocalizationOptions"/>. Can be <c>null</c>.</param> 298Action<MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction)
Microsoft.AspNetCore.Mvc.Localization.Test (4)
MvcLocalizationMvcBuilderExtensionsTest.cs (2)
60sd => sd.ServiceType == typeof(IConfigureOptions<MvcDataAnnotationsLocalizationOptions>)); 121var actualOptions = serviceProvider.GetRequiredService<IOptions<MvcDataAnnotationsLocalizationOptions>>();
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (2)
60sd => sd.ServiceType == typeof(IConfigureOptions<MvcDataAnnotationsLocalizationOptions>)); 121var actualOptions = serviceProvider.GetRequiredService<IOptions<MvcDataAnnotationsLocalizationOptions>>();
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
DependencyInjection\MvcViewOptionsSetup.cs (3)
16private readonly IOptions<MvcDataAnnotationsLocalizationOptions> _dataAnnotationsLocalizationOptions; 21IOptions<MvcDataAnnotationsLocalizationOptions> dataAnnotationLocalizationOptions, 32IOptions<MvcDataAnnotationsLocalizationOptions> dataAnnotationOptions,
RemoteAttributeBase.cs (1)
180var options = services.GetRequiredService<IOptions<MvcDataAnnotationsLocalizationOptions>>();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
RemoteAttributeBaseTest.cs (4)
224.GetRequiredService<IOptions<MvcDataAnnotationsLocalizationOptions>>(); 271.GetRequiredService<IOptions<MvcDataAnnotationsLocalizationOptions>>(); 316.GetRequiredService<IOptions<MvcDataAnnotationsLocalizationOptions>>(); 408.GetRequiredService<IOptions<MvcDataAnnotationsLocalizationOptions>>();
Rendering\DefaultTemplatesUtilities.cs (1)
237var localizationOptions = new MvcDataAnnotationsLocalizationOptions();