2 implementations of IViewLocalizer
Microsoft.AspNetCore.Mvc.Localization (1)
ViewLocalizer.cs (1)
17public class ViewLocalizer : IViewLocalizer, IViewContextAware
Microsoft.AspNetCore.Mvc.Localization.Test (1)
MvcLocalizationServiceCollectionExtensionsTest.cs (1)
72public class TestViewLocalizer : IViewLocalizer
7 references to IViewLocalizer
Microsoft.AspNetCore.Mvc.Localization (2)
MvcLocalizationServices.cs (1)
43services.TryAdd(ServiceDescriptor.Transient<IViewLocalizer, ViewLocalizer>());
ViewLocalizer.cs (1)
14/// An <see cref="IViewLocalizer"/> implementation that derives the resource location from the executing view's
Microsoft.AspNetCore.Mvc.Localization.Test (5)
MvcLocalizationMvcBuilderExtensionsTest.cs (1)
79service = services.FirstOrDefault(sd => sd.ServiceType == typeof(IViewLocalizer));
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (1)
79service = services.FirstOrDefault(sd => sd.ServiceType == typeof(IViewLocalizer));
MvcLocalizationServiceCollectionExtensionsTest.cs (3)
28AssertContainsSingle(collection, typeof(IViewLocalizer), typeof(ViewLocalizer)); 40collection.Add(ServiceDescriptor.Transient(typeof(IViewLocalizer), typeof(TestViewLocalizer))); 48AssertContainsSingle(collection, typeof(IViewLocalizer), typeof(TestViewLocalizer));