//these properties would be set by MVC if the controller was a POCO //public ControllerContext ActionContext { get; set; } //public ViewDataDictionary ViewData { get; set; } //public IUrlHelper Url { get; set; } public AccountController(NHibernate.ISession session, IAsyncStringLocalizer <AccountController> localizer, IAuthenticationService authenticationService) { this.session = session; this.localizer = localizer; this.authenticationService = authenticationService; }
public MissingStringLocalizer(IAsyncStringLocalizer asyncInner, IMissingStringLocalizerLogger missing) { this.asyncInner = asyncInner; this.missing = missing; }
public MissingStringLocalizer(IAsyncStringLocalizer asyncInner, IMissingStringLocalizerLogger missing, CultureInfo culture) { this.asyncInner = asyncInner; this.missing = missing; this.culture = culture; }
public AsyncStringLocalizer(IAsyncLocalizerFactory asyncLocalizerFactory) { this.localizer = asyncLocalizerFactory.Create(typeof(T)); }