public HomeController(IJsonStringLocalizer <HomeController> localizer) { _localizer = localizer; _localizer.ClearMemCache(new List <CultureInfo>() { new CultureInfo("en-US") }); }
public LinkController( ApplicationDbContext context, INotifier notifier, IJsonStringLocalizer localizer, ILogger <ArticleController> logger ) { _context = context; _notifier = notifier; _localizer = localizer; _logger = logger; _localizer.ClearMemCache(new List <CultureInfo>() { new CultureInfo("en-US") }); }
public AccountController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSender emailSender, ILogger <AccountController> logger, IJsonStringLocalizer localizer, INotifier notifier) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _logger = logger; _localizer = localizer; _notifier = notifier; _localizer.ClearMemCache(new List <CultureInfo>() { new CultureInfo("en-US") }); }
public UserController( ApplicationDbContext context, IAuthorizationService aus, UserManager <ApplicationUser> userManager, IFileIoHelper ioHelper, INotifier notifier, IConfiguration config, IJsonStringLocalizer localizer, ILogger <UserController> logger ) { _aus = aus; _userManager = userManager; _context = context; _ioHelper = ioHelper; _notifier = notifier; _config = config; _localizer = localizer; _logger = logger; _localizer.ClearMemCache(new List <CultureInfo>() { new CultureInfo("en-US") }); }