public ContentLinkTagHelper( IContentManager contentManager, IUrlHelperFactory urlHelperFactory, IContentDefinitionManager contentDefinitionManager) { _contentDefinitionManager = contentDefinitionManager; _urlHelperFactory = urlHelperFactory; _contentManager = contentManager; }
public EventRepository(ISpeakerRepository speakerRepository, IOptions<AppSettings> appSettings, IServiceProvider serviceProvider, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor) { this.speakerRepository = speakerRepository; this.serviceProvider = serviceProvider; this.appSettings = appSettings; this.urlHelperFactory = urlHelperFactory; this.actionContextAccessor = actionContextAccessor; loadData().Wait(); }
/// <summary> /// Creates a new <see cref="ImageTagHelper"/>. /// </summary> /// <param name="hostingEnvironment">The <see cref="IHostingEnvironment"/>.</param> /// <param name="cache">The <see cref="IMemoryCache"/>.</param> /// <param name="htmlEncoder">The <see cref="HtmlEncoder"/> to use.</param> /// <param name="urlHelperFactory">The <see cref="IUrlHelperFactory"/>.</param> public ImageTagHelper( IHostingEnvironment hostingEnvironment, IMemoryCache cache, HtmlEncoder htmlEncoder, IUrlHelperFactory urlHelperFactory) : base(urlHelperFactory, htmlEncoder) { HostingEnvironment = hostingEnvironment; Cache = cache; }
public TestResponseGenerator(IActionContextAccessor contextAccessor, IUrlHelperFactory urlHelperFactory) { _urlHelperFactory = urlHelperFactory; _actionContext = contextAccessor.ActionContext; if (_actionContext == null) { throw new InvalidOperationException("ActionContext should not be null here."); } }
public PagerTagHelper( IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccesor, //IHtmlGenerator generator, IBuildPaginationLinks linkBuilder = null) { //Generator = generator; this.linkBuilder = linkBuilder ?? new PaginationLinkBuilder(); this.urlHelperFactory = urlHelperFactory; this.actionContextAccesor = actionContextAccesor; }
public NavigationTreeSiteMapNodeService( NavigationTreeBuilderService siteMapTreeBuilder, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccesor, IHttpContextAccessor contextAccessor, ILogger<NavigationTreeSiteMapNodeService> logger) { this.siteMapTreeBuilder = siteMapTreeBuilder; this.urlHelperFactory = urlHelperFactory; this.actionContextAccesor = actionContextAccesor; this.contextAccessor = contextAccessor; log = logger; }
public GridTagHelper(IOptions<MvcViewOptions> optionsAccessor, IHtmlHelper html, IHttpContextAccessor httpAccessor, IViewComponentHelper component, IUrlHelperFactory urlHelperFactory, IStringLocalizerFactory factory) { IdAttributeDotReplacement = optionsAccessor.Value.HtmlHelperOptions.IdAttributeDotReplacement; this.html = html; this.httpAccessor = httpAccessor; this.component = component; this.urlHelperFactory = urlHelperFactory; this.factory = factory; }
public NavigationManager( IEnumerable<INavigationProvider> navigationProviders, ILogger<NavigationManager> logger, ShellSettings shellSettings, IUrlHelperFactory urlHelperFactory //IAuthorizationService authorizationService , ) { _navigationProviders = navigationProviders; _logger = logger; _shellSettings = shellSettings; _urlHelperFactory = urlHelperFactory; //_authorizationService = authorizationService; }
public IssuesController(IUserAuthHelper userSessionHelper, IProjectManager projectManager, IIssueManager issueManager, ITeamManager teamManager, IUploadHandler uploadHandler, IUploadManager uploadManager, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor) //: base(repositary) { this._issueManager = issueManager; this._projectManager = projectManager; this._userSessionHelper = userSessionHelper; this._teamManager = teamManager; this._uploadHandler = uploadHandler; this._uploadManager = uploadManager; this._urlHelper = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext); }
public RedirectToRouteResultExecutor(ILoggerFactory loggerFactory, IUrlHelperFactory urlHelperFactory) { if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } if (urlHelperFactory == null) { throw new ArgumentNullException(nameof(urlHelperFactory)); } _logger = loggerFactory.CreateLogger<RedirectToRouteResult>(); _urlHelperFactory = urlHelperFactory; }
/// <summary> /// Initializes a new instance of the <see cref="RazorPageActivator"/> class. /// </summary> public RazorPageActivator( IModelMetadataProvider metadataProvider, IUrlHelperFactory urlHelperFactory, IJsonHelper jsonHelper, DiagnosticSource diagnosticSource, HtmlEncoder htmlEncoder, IModelExpressionProvider modelExpressionProvider) { _activationInfo = new ConcurrentDictionary<Type, PageActivationInfo>(); _metadataProvider = metadataProvider; _urlHelperAccessor = context => urlHelperFactory.GetUrlHelper(context); _jsonHelperAccessor = context => jsonHelper; _diagnosticSourceAccessor = context => diagnosticSource; _htmlEncoderAccessor = context => htmlEncoder; _modelExpressionProviderAccessor = context => modelExpressionProvider; }
public NavigationBarController(IConferenceLoader conferenceLoader, IMenuStateFactory menuStateFactory, IUrlHelperFactory urlHelperFactory) { if (conferenceLoader == null) { throw new ArgumentNullException("conferenceLoader"); } if (menuStateFactory == null) { throw new ArgumentNullException("menuStateFactory"); } if (urlHelperFactory == null) { throw new ArgumentNullException("urlHelperFactory"); } this.conferenceLoader = conferenceLoader; this.menuStateFactory = menuStateFactory; this.urlHelperFactory = urlHelperFactory; }
public NavigationViewComponent( NavigationTreeBuilderService siteMapTreeBuilder, IEnumerable<INavigationNodePermissionResolver> permissionResolvers, IEnumerable<IFindCurrentNode> nodeFinders, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccesor, INodeUrlPrefixProvider prefixProvider, ILogger<NavigationViewComponent> logger) { builder = siteMapTreeBuilder; this.permissionResolvers = permissionResolvers; this.nodeFinders = nodeFinders; this.urlHelperFactory = urlHelperFactory; this.actionContextAccesor = actionContextAccesor; if (prefixProvider == null) { this.prefixProvider = new DefaultNodeUrlPrefixProvider(); } else { this.prefixProvider = prefixProvider; } log = logger; }
private static IServiceCollection CreateServices(IUrlHelperFactory factory = null) { var services = new ServiceCollection(); services.AddSingleton<RedirectToRouteResultExecutor>(); if (factory != null) { services.AddSingleton(factory); } else { services.AddSingleton<IUrlHelperFactory, UrlHelperFactory>(); } services.AddSingleton<ILoggerFactory>(NullLoggerFactory.Instance); return services; }
public PageNumTagHelper(IUrlHelperFactory url) { urlInfo = url; }
public NavigationRepository(IExtendedStringLocalizerFactory localizerFactory, IActionContextAccessor actionContextAccessor, IUrlHelperFactory urlHelperFactory) { _localizer = localizerFactory.Create("DOCUMENTS"); _actionContextAccessor = actionContextAccessor; _urlHelperFactory = urlHelperFactory; }
public PagerTagHelper(IHttpContextAccessor accessor, IActionContextAccessor actionContextAccessor, IUrlHelperFactory urlHelperFactory) { _httpContext = accessor.HttpContext; _urlHelper = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext); }
public MenuLinkTagHelper(IUrlHelperFactory urlHelper) { _UrlHelper = urlHelper; }
public SortableColumnTagHelper(IUrlHelperFactory urlHelperFactory, IActionContextAccessor contextAccessor) { _urlHelper = urlHelperFactory.GetUrlHelper(contextAccessor.ActionContext); }
public ParseVersionTagHelper(IUrlHelperFactory urlHelperFactory) : base(urlHelperFactory) { _urlHelperFactory = urlHelperFactory; }
public ConstructorInjectionController(IUrlHelperFactory urlHelperFactory, QueryValueService queryService) { UrlHelperFactory = urlHelperFactory; QueryService = queryService; }
public ATagHelper(IUrlHelperFactory urlHelperFactory) { UrlHelperFactory = urlHelperFactory; }
/// <summary> /// Creates a new <see cref="UrlResolutionTagHelper"/>. /// </summary> /// <param name="urlHelperFactory">The <see cref="IUrlHelperFactory"/>.</param> /// <param name="htmlEncoder">The <see cref="HtmlEncoder"/>.</param> public UrlResolutionTagHelper(IUrlHelperFactory urlHelperFactory, HtmlEncoder htmlEncoder) { UrlHelperFactory = urlHelperFactory; HtmlEncoder = htmlEncoder; }
public PageLinkTagHelper(IUrlHelperFactory helperFactory) { _urlHelperFactory = helperFactory; }
public ListTagHelper(FileStorage storage, IUrlHelperFactory urlHelperFactory) { _storage = storage; _urlHelperFactory = urlHelperFactory; }
public SendConfirmationEmailCommandHelper(UserManager <IdentityUser> userManager, IEmailSender emailSender, IUrlHelperFactory urlHelperFactory, IHttpContextAccessor httpContextAccessor, IActionContextAccessor actionAccessor) { _userManager = userManager; _emailSender = emailSender; _urlHelper = urlHelperFactory.GetUrlHelper(actionAccessor.ActionContext); _httpContextAcessor = httpContextAccessor; }
public SeedLinkHelper([NotNull] IHttpContextAccessor httpContextAccessor, IActionContextAccessor actionContextAccessor, IUrlHelperFactory urlHelperFactory) : base(httpContextAccessor, actionContextAccessor, urlHelperFactory) { }
public CommonModelFactory(AdminAreaSettings adminAreaSettings, AppSettings appSettings, CatalogSettings catalogSettings, CurrencySettings currencySettings, IActionContextAccessor actionContextAccessor, IAuthenticationPluginManager authenticationPluginManager, IBaseAdminModelFactory baseAdminModelFactory, //IComponentContext componentContext, ICurrencyService currencyService, ICustomerService customerService, INopDataProvider dataProvider, IDateTimeHelper dateTimeHelper, INopFileProvider fileProvider, IExchangeRatePluginManager exchangeRatePluginManager, IHttpContextAccessor httpContextAccessor, ILanguageService languageService, ILocalizationService localizationService, IMaintenanceService maintenanceService, IMeasureService measureService, IMultiFactorAuthenticationPluginManager multiFactorAuthenticationPluginManager, IOrderService orderService, IPaymentPluginManager paymentPluginManager, IPickupPluginManager pickupPluginManager, IPluginService pluginService, IProductService productService, IReturnRequestService returnRequestService, ISearchTermService searchTermService, IShippingPluginManager shippingPluginManager, IStaticCacheManager staticCacheManager, IStoreContext storeContext, IStoreService storeService, ITaxPluginManager taxPluginManager, IUrlHelperFactory urlHelperFactory, IUrlRecordService urlRecordService, IWebHelper webHelper, IWidgetPluginManager widgetPluginManager, IWorkContext workContext, MeasureSettings measureSettings, NopHttpClient nopHttpClient, ProxySettings proxySettings) { _adminAreaSettings = adminAreaSettings; _appSettings = appSettings; _catalogSettings = catalogSettings; _currencySettings = currencySettings; _actionContextAccessor = actionContextAccessor; _authenticationPluginManager = authenticationPluginManager; _baseAdminModelFactory = baseAdminModelFactory; //_componentContext = componentContext; _currencyService = currencyService; _customerService = customerService; _dataProvider = dataProvider; _dateTimeHelper = dateTimeHelper; _exchangeRatePluginManager = exchangeRatePluginManager; _httpContextAccessor = httpContextAccessor; _languageService = languageService; _localizationService = localizationService; _maintenanceService = maintenanceService; _measureService = measureService; _multiFactorAuthenticationPluginManager = multiFactorAuthenticationPluginManager; _fileProvider = fileProvider; _orderService = orderService; _paymentPluginManager = paymentPluginManager; _pickupPluginManager = pickupPluginManager; _pluginService = pluginService; _productService = productService; _returnRequestService = returnRequestService; _searchTermService = searchTermService; _shippingPluginManager = shippingPluginManager; _staticCacheManager = staticCacheManager; _storeContext = storeContext; _storeService = storeService; _taxPluginManager = taxPluginManager; _urlHelperFactory = urlHelperFactory; _urlRecordService = urlRecordService; _webHelper = webHelper; _widgetPluginManager = widgetPluginManager; _workContext = workContext; _measureSettings = measureSettings; _nopHttpClient = nopHttpClient; _proxySettings = proxySettings; }
public PageLinkTagHelper(IUrlHelperFactory factory) { urlHelperFactory = factory; }
public PagerTagHelper(IUrlHelperFactory urlHelperFactory) { this.UrlHelperFactory = urlHelperFactory; }
public void InjectServices(IUrlHelperFactory urlHelperFactory) { _urlHelperFactory = urlHelperFactory; }
public PageLinkTagHelper(IUrlHelperFactory hp) { urlHelperFactory = hp; }
public SpeakerTagHelper(ISpeakerRepository speakerRepository, IUrlHelperFactory urlHelperFactory) { this.speakerRepository = speakerRepository; this.urlHelperFactory = urlHelperFactory; }
public LinkRewritingFilter(IUrlHelperFactory urlHelperFactory) { _urlHelperFactory = urlHelperFactory; }
private static HttpContext GetHttpContext(IUrlHelperFactory factory = null) { var services = CreateServices(factory); var httpContext = new DefaultHttpContext(); httpContext.RequestServices = services.BuildServiceProvider(); return httpContext; }
// Constructor public BrowsePaginationTagHelper(IUrlHelperFactory uhf) { urlInfo = uhf; }
public PaginationTagHelper(IUrlHelperFactory helperFun) { urlInfo = helperFun; }
/// <summary> /// Creates a new <see cref="ScriptTagHelper"/>. /// </summary> /// <param name="hostingEnvironment">The <see cref="IHostingEnvironment"/>.</param> /// <param name="cache">The <see cref="IMemoryCache"/>.</param> /// <param name="htmlEncoder">The <see cref="HtmlEncoder"/>.</param> /// <param name="javaScriptEncoder">The <see cref="JavaScriptEncoder"/>.</param> /// <param name="urlHelperFactory">The <see cref="IUrlHelperFactory"/>.</param> public ScriptTagHelper( IHostingEnvironment hostingEnvironment, IMemoryCache cache, HtmlEncoder htmlEncoder, JavaScriptEncoder javaScriptEncoder, IUrlHelperFactory urlHelperFactory) : base(urlHelperFactory, htmlEncoder) { HostingEnvironment = hostingEnvironment; Cache = cache; JavaScriptEncoder = javaScriptEncoder; }
public MenuLinkTagHelper(MenuDataRepository navigationMenu, IUrlHelperFactory urlHelper) { _navigationMenu = navigationMenu; _urlHelper = urlHelper; }
public PagerTagHelper( IHtmlHelper html, IHttpContextAccessor httpAccessor, IViewComponentHelper component, IUrlHelperFactory urlHelperFactory, IStringLocalizerFactory factory) { this.html = html; this.httpAccessor = httpAccessor; this.component = component; this.urlHelperFactory = urlHelperFactory; this.factory = factory; }
protected CarLinkTagHelperBase(IActionContextAccessor contextAccessor, IUrlHelperFactory urlHelperFactory) { UrlHelper = urlHelperFactory.GetUrlHelper(contextAccessor.ActionContext); }