1 instantiation of ResourceManagerStringLocalizer
Microsoft.Extensions.Localization (1)
ResourceManagerStringLocalizerFactory.cs (1)
171return new ResourceManagerStringLocalizer(
30 references to ResourceManagerStringLocalizer
Microsoft.Extensions.Localization (16)
ResourceManagerStringLocalizer.cs (2)
31/// Creates a new <see cref="ResourceManagerStringLocalizer"/>. 222[LoggerMessage(1, LogLevel.Debug, $"{nameof(ResourceManagerStringLocalizer)} searched for '{{Key}}' in '{{LocationSearched}}' with culture '{{Culture}}'.", EventName = "SearchedLocation")]
ResourceManagerStringLocalizerFactory.cs (14)
16/// An <see cref="IStringLocalizerFactory"/> that creates instances of <see cref="ResourceManagerStringLocalizer"/>. 26private readonly ConcurrentDictionary<string, ResourceManagerStringLocalizer> _localizerCache = 27new ConcurrentDictionary<string, ResourceManagerStringLocalizer>(); 32/// Creates a new <see cref="ResourceManagerStringLocalizer"/>. 117/// Creates a <see cref="ResourceManagerStringLocalizer"/> using the <see cref="Assembly"/> and 121/// <returns>The <see cref="ResourceManagerStringLocalizer"/>.</returns> 127if (!_localizerCache.TryGetValue(resourceSource.AssemblyQualifiedName!, out var localizer)) 142/// Creates a <see cref="ResourceManagerStringLocalizer"/>. 146/// <returns>The <see cref="ResourceManagerStringLocalizer"/>.</returns> 162/// <summary>Creates a <see cref="ResourceManagerStringLocalizer"/> for the given input.</summary> 163/// <param name="assembly">The assembly to create a <see cref="ResourceManagerStringLocalizer"/> for.</param> 165/// <returns>A <see cref="ResourceManagerStringLocalizer"/> for the given <paramref name="assembly"/> and <paramref name="baseName"/>.</returns> 167protected virtual ResourceManagerStringLocalizer CreateResourceManagerStringLocalizer( 176_loggerFactory.CreateLogger<ResourceManagerStringLocalizer>());
Microsoft.Extensions.Localization.Tests (14)
ResourceManagerStringLocalizerFactoryTest.cs (4)
48protected override ResourceManagerStringLocalizer CreateResourceManagerStringLocalizer(Assembly assembly, string baseName) 215var location = typeof(ResourceManagerStringLocalizer).Assembly.FullName; 234var location = typeof(ResourceManagerStringLocalizer).Assembly.FullName; 253var location1 = new AssemblyName(typeof(ResourceManagerStringLocalizer).Assembly.FullName).Name;
ResourceManagerStringLocalizerTest.cs (10)
33var localizer1 = new ResourceManagerStringLocalizer(resourceManager, 38var localizer2 = new ResourceManagerStringLocalizer(resourceManager, 63var resourceAssembly2 = new TestAssemblyWrapper(typeof(ResourceManagerStringLocalizer)); 69var localizer1 = new ResourceManagerStringLocalizer( 75var localizer2 = new ResourceManagerStringLocalizer( 102var localizer = new ResourceManagerStringLocalizer( 128var localizer = new ResourceManagerStringLocalizer( 155var localizer = new ResourceManagerStringLocalizer( 186var localizer = new ResourceManagerStringLocalizer( 247private ILogger Logger => new TestLoggerFactory(Sink, enabled: true).CreateLogger<ResourceManagerStringLocalizer>();