2 implementations of IViewLocalizer
Microsoft.AspNetCore.Mvc.Localization (1)
ViewLocalizer.cs (1)
17
public class ViewLocalizer :
IViewLocalizer
, IViewContextAware
Microsoft.AspNetCore.Mvc.Localization.Test (1)
MvcLocalizationServiceCollectionExtensionsTest.cs (1)
72
public class TestViewLocalizer :
IViewLocalizer
7 references to IViewLocalizer
Microsoft.AspNetCore.Mvc.Localization (2)
MvcLocalizationServices.cs (1)
43
services.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)
79
service = services.FirstOrDefault(sd => sd.ServiceType == typeof(
IViewLocalizer
));
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (1)
79
service = services.FirstOrDefault(sd => sd.ServiceType == typeof(
IViewLocalizer
));
MvcLocalizationServiceCollectionExtensionsTest.cs (3)
28
AssertContainsSingle(collection, typeof(
IViewLocalizer
), typeof(ViewLocalizer));
40
collection.Add(ServiceDescriptor.Transient(typeof(
IViewLocalizer
), typeof(TestViewLocalizer)));
48
AssertContainsSingle(collection, typeof(
IViewLocalizer
), typeof(TestViewLocalizer));