public OrganizationController(IUnitOfWork unitOfWork, LocalizerService localizerService, IMapper mapper) { _unitOfWork = unitOfWork; _localizerService = localizerService; _mapper = mapper; }
public UserController(UserManager <UserApp> userManager, RoleManager <ApplicationRole> roleManager, LocalizerService localizerService) { _userManager = userManager; _roleManager = roleManager; _localizerService = localizerService; }
public AccountController(UserManager <UserApp> userManager, RoleManager <ApplicationRole> roleManager, SignInManager <UserApp> signInManager, LocalizerService localizerService) { _userManager = userManager; _roleManager = roleManager; _signInManager = signInManager; _localizerService = localizerService; }
/// <summary> /// ConfigureSupportedCulturesAndLocalizationOptions /// https://github.com/aspnet/Entropy/blob/dev/samples/Localization.StarterWeb/Startup.cs /// https://joonasw.net/view/aspnet-core-localization-deep-dive /// </summary> private static void ConfigureLocalizerService(IServiceCollection services) { var localizer = new LocalizerService(); if (localizer.Configured) { return; } services.AddSingleton <ILocalizerService, LocalizerService>(c => localizer); services.Configure <RequestLocalizationOptions>(localizer.Configure); }
public TemplateRepository(LocalizerService localizerService) { _localizerService = localizerService; }
public HomeController(LocalizerService localizerService) { _localizerService = localizerService; }