2 implementations of IHtmlLocalizer
Microsoft.AspNetCore.Mvc.Localization (1)
HtmlLocalizerOfT.cs (1)
13public class HtmlLocalizer<TResource> : IHtmlLocalizer<TResource>
Microsoft.AspNetCore.Mvc.Localization.Test (1)
MvcLocalizationServiceCollectionExtensionsTest.cs (1)
101public class TestHtmlLocalizer<HomeController> : IHtmlLocalizer<HomeController>
6 references to IHtmlLocalizer
Microsoft.AspNetCore.Mvc.Localization (1)
MvcLocalizationServices.cs (1)
42services.TryAdd(ServiceDescriptor.Transient(typeof(IHtmlLocalizer<>), typeof(HtmlLocalizer<>)));
Microsoft.AspNetCore.Mvc.Localization.Test (5)
MvcLocalizationMvcBuilderExtensionsTest.cs (1)
74service = services.FirstOrDefault(sd => sd.ServiceType == typeof(IHtmlLocalizer<>));
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (1)
74service = services.FirstOrDefault(sd => sd.ServiceType == typeof(IHtmlLocalizer<>));
MvcLocalizationServiceCollectionExtensionsTest.cs (3)
27AssertContainsSingle(collection, typeof(IHtmlLocalizer<>), typeof(HtmlLocalizer<>)); 39collection.Add(ServiceDescriptor.Transient(typeof(IHtmlLocalizer<>), typeof(TestHtmlLocalizer<>))); 47AssertContainsSingle(collection, typeof(IHtmlLocalizer<>), typeof(TestHtmlLocalizer<>));