1 implementation of IStringLocalizerFactory
Microsoft.Extensions.Localization (1)
ResourceManagerStringLocalizerFactory.cs (1)
23public class ResourceManagerStringLocalizerFactory : IStringLocalizerFactory
30 references to IStringLocalizerFactory
Microsoft.AspNetCore.Components.Endpoints (4)
Forms\DataAnnotationsClientValidationProvider.cs (2)
33var stringLocalizerFactory = serviceProvider.GetService<IStringLocalizerFactory>();
Forms\DataAnnotationsLocalizer.cs (2)
11internal class DataAnnotationsLocalizer(ValidationOptions options, IStringLocalizerFactory? localizerFactory) 131private IStringLocalizer GetStringLocalizer(Type type, IStringLocalizerFactory localizerFactory)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyComponentsServiceOptionsConfiguration.cs (1)
20_ => serviceProviderIsService.IsService(typeof(IStringLocalizerFactory)),
Microsoft.AspNetCore.Mvc.DataAnnotations (11)
DataAnnotationsClientModelValidatorProvider.cs (3)
21private readonly IStringLocalizerFactory? _stringLocalizerFactory; 30/// <param name="stringLocalizerFactory">The <see cref="IStringLocalizerFactory"/>.</param> 34IStringLocalizerFactory? stringLocalizerFactory)
DataAnnotationsMetadataProvider.cs (2)
24private readonly IStringLocalizerFactory? _stringLocalizerFactory; 31IStringLocalizerFactory? stringLocalizerFactory)
DataAnnotationsModelValidatorProvider.cs (3)
19private readonly IStringLocalizerFactory? _stringLocalizerFactory; 28/// <param name="stringLocalizerFactory">The <see cref="IStringLocalizerFactory"/>.</param> 34IStringLocalizerFactory? stringLocalizerFactory)
DependencyInjection\MvcDataAnnotationsMvcOptionsSetup.cs (2)
16private readonly IStringLocalizerFactory? _stringLocalizerFactory; 34IStringLocalizerFactory stringLocalizerFactory)
MvcDataAnnotationsLocalizationOptions.cs (1)
20public Func<Type, IStringLocalizerFactory, IStringLocalizer> DataAnnotationLocalizerProvider = null!;
Microsoft.AspNetCore.Mvc.Localization (4)
HtmlLocalizerFactory.cs (4)
10/// registered <see cref="IStringLocalizerFactory"/>. 14private readonly IStringLocalizerFactory _factory; 19/// <param name="localizerFactory">The <see cref="IStringLocalizerFactory"/>.</param> 20public HtmlLocalizerFactory(IStringLocalizerFactory localizerFactory)
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
DependencyInjection\MvcViewOptionsSetup.cs (2)
18private readonly IStringLocalizerFactory _stringLocalizerFactory; 34IStringLocalizerFactory stringLocalizerFactory)
RemoteAttributeBase.cs (2)
181var factory = services.GetService<IStringLocalizerFactory>();
Microsoft.Extensions.Localization (2)
LocalizationServiceCollectionExtensions.cs (1)
57services.TryAddSingleton<IStringLocalizerFactory, ResourceManagerStringLocalizerFactory>();
ResourceManagerStringLocalizerFactory.cs (1)
16/// An <see cref="IStringLocalizerFactory"/> that creates instances of <see cref="ResourceManagerStringLocalizer"/>.
Microsoft.Extensions.Localization.Abstractions (2)
StringLocalizerOfT.cs (2)
21/// <param name="factory">The <see cref="IStringLocalizerFactory"/> to use.</param> 22public StringLocalizer(IStringLocalizerFactory factory)
Microsoft.Extensions.Validation (2)
ValidationOptions.cs (2)
41/// The delegate receives the type used to resolve the localizer and the registered <see cref="IStringLocalizerFactory"/>. 45public Func<Type, IStringLocalizerFactory, IStringLocalizer> LocalizerProvider { get; set; }