コード例 #1
0
 public ContentLinkTagHelper(
     IContentManager contentManager,
     IUrlHelperFactory urlHelperFactory,
     IContentDefinitionManager contentDefinitionManager)
 {
     _contentDefinitionManager = contentDefinitionManager;
     _urlHelperFactory = urlHelperFactory;
     _contentManager = contentManager;
 }
コード例 #2
0
ファイル: EventRepository.cs プロジェクト: Fixxup/fixxup.nl
        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();

        }
コード例 #3
0
ファイル: ImageTagHelper.cs プロジェクト: ymd1223/Mvc
 /// <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;
 }
コード例 #4
0
        public TestResponseGenerator(IActionContextAccessor contextAccessor, IUrlHelperFactory urlHelperFactory)
        {
            _urlHelperFactory = urlHelperFactory;

            _actionContext = contextAccessor.ActionContext;
            if (_actionContext == null)
            {
                throw new InvalidOperationException("ActionContext should not be null here.");
            }
        }
コード例 #5
0
 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;
 }
コード例 #8
0
ファイル: NavigationManager.cs プロジェクト: jchenga/Orchard2
 public NavigationManager(
     IEnumerable<INavigationProvider> navigationProviders,
     ILogger<NavigationManager> logger,
     ShellSettings shellSettings,
     IUrlHelperFactory urlHelperFactory
     //IAuthorizationService authorizationService ,
     )
 {
     _navigationProviders = navigationProviders;
     _logger = logger;
     _shellSettings = shellSettings;
     _urlHelperFactory = urlHelperFactory;
     //_authorizationService = authorizationService;
 }
コード例 #9
0
        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);

        }
コード例 #10
0
        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;
        }
コード例 #11
0
ファイル: RazorPageActivator.cs プロジェクト: ymd1223/Mvc
 /// <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;
 }
コード例 #12
0
        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;
        }
コード例 #13
0
 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;
 }
コード例 #14
0
        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;
        }
コード例 #15
0
 public PageNumTagHelper(IUrlHelperFactory url)
 {
     urlInfo = url;
 }
コード例 #16
0
 public NavigationRepository(IExtendedStringLocalizerFactory localizerFactory, IActionContextAccessor actionContextAccessor, IUrlHelperFactory urlHelperFactory)
 {
     _localizer             = localizerFactory.Create("DOCUMENTS");
     _actionContextAccessor = actionContextAccessor;
     _urlHelperFactory      = urlHelperFactory;
 }
コード例 #17
0
 public PagerTagHelper(IHttpContextAccessor accessor, IActionContextAccessor actionContextAccessor, IUrlHelperFactory urlHelperFactory)
 {
     _httpContext = accessor.HttpContext;
     _urlHelper   = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
 }
コード例 #18
0
 public MenuLinkTagHelper(IUrlHelperFactory urlHelper)
 {
     _UrlHelper = urlHelper;
 }
コード例 #19
0
 public SortableColumnTagHelper(IUrlHelperFactory urlHelperFactory, IActionContextAccessor contextAccessor)
 {
     _urlHelper = urlHelperFactory.GetUrlHelper(contextAccessor.ActionContext);
 }
コード例 #20
0
 public ParseVersionTagHelper(IUrlHelperFactory urlHelperFactory) : base(urlHelperFactory)
 {
     _urlHelperFactory = urlHelperFactory;
 }
コード例 #21
0
 public ConstructorInjectionController(IUrlHelperFactory urlHelperFactory, QueryValueService queryService)
 {
     UrlHelperFactory = urlHelperFactory;
     QueryService = queryService;
 }
コード例 #22
0
ファイル: ATagHelper.cs プロジェクト: phinq19/git_example
 public ATagHelper(IUrlHelperFactory urlHelperFactory)
 {
     UrlHelperFactory = urlHelperFactory;
 }
コード例 #23
0
 /// <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;
 }
コード例 #24
0
ファイル: PageLink.cs プロジェクト: AstruvasNet/SyroeshkaRu
 public PageLinkTagHelper(IUrlHelperFactory helperFactory)
 {
     _urlHelperFactory = helperFactory;
 }
コード例 #25
0
ファイル: ListTagHelper.cs プロジェクト: war-man/DocRefList
 public ListTagHelper(FileStorage storage, IUrlHelperFactory urlHelperFactory)
 {
     _storage          = storage;
     _urlHelperFactory = urlHelperFactory;
 }
コード例 #26
0
 public SendConfirmationEmailCommandHelper(UserManager <IdentityUser> userManager, IEmailSender emailSender, IUrlHelperFactory urlHelperFactory, IHttpContextAccessor httpContextAccessor, IActionContextAccessor actionAccessor)
 {
     _userManager        = userManager;
     _emailSender        = emailSender;
     _urlHelper          = urlHelperFactory.GetUrlHelper(actionAccessor.ActionContext);
     _httpContextAcessor = httpContextAccessor;
 }
コード例 #27
0
 public SeedLinkHelper([NotNull] IHttpContextAccessor httpContextAccessor, IActionContextAccessor actionContextAccessor, IUrlHelperFactory urlHelperFactory)
     : base(httpContextAccessor, actionContextAccessor, urlHelperFactory)
 {
 }
コード例 #28
0
 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;
 }
コード例 #29
0
 public PageLinkTagHelper(IUrlHelperFactory factory)
 {
     urlHelperFactory = factory;
 }
コード例 #30
0
ファイル: PageTagHelper.cs プロジェクト: scheshan/DotNetClub
 public PagerTagHelper(IUrlHelperFactory urlHelperFactory)
 {
     this.UrlHelperFactory = urlHelperFactory;
 }
コード例 #31
0
 public void InjectServices(IUrlHelperFactory urlHelperFactory)
 {
     _urlHelperFactory = urlHelperFactory;
 }
コード例 #32
0
 public PageLinkTagHelper(IUrlHelperFactory hp)
 {
     urlHelperFactory = hp;
 }
コード例 #33
0
ファイル: SpeakerTagHelper.cs プロジェクト: Fixxup/fixxup.nl
 public SpeakerTagHelper(ISpeakerRepository speakerRepository, IUrlHelperFactory urlHelperFactory)
 {
     this.speakerRepository = speakerRepository;
     this.urlHelperFactory = urlHelperFactory;
 }
コード例 #34
0
 public LinkRewritingFilter(IUrlHelperFactory urlHelperFactory)
 {
     _urlHelperFactory = urlHelperFactory;
 }
コード例 #35
0
        private static HttpContext GetHttpContext(IUrlHelperFactory factory = null)
        {
            var services = CreateServices(factory);

            var httpContext = new DefaultHttpContext();
            httpContext.RequestServices = services.BuildServiceProvider();

            return httpContext;
        }
コード例 #36
0
 // Constructor
 public BrowsePaginationTagHelper(IUrlHelperFactory uhf)
 {
     urlInfo = uhf;
 }
コード例 #37
0
 public PaginationTagHelper(IUrlHelperFactory helperFun)
 {
     urlInfo = helperFun;
 }
コード例 #38
0
 /// <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;
 }
コード例 #41
0
 protected CarLinkTagHelperBase(IActionContextAccessor contextAccessor, IUrlHelperFactory urlHelperFactory)
 {
     UrlHelper = urlHelperFactory.GetUrlHelper(contextAccessor.ActionContext);
 }