Example #1
0
        public AliasUrlProvider(IOptionsMonitor <RequestHandlerSettings> requestConfig, ISiteDomainMapper siteDomainMapper, UriUtility uriUtility, IPublishedValueFallback publishedValueFallback, IUmbracoContextAccessor umbracoContextAccessor)
        {
            _requestConfig          = requestConfig.CurrentValue;
            _siteDomainMapper       = siteDomainMapper;
            _uriUtility             = uriUtility;
            _publishedValueFallback = publishedValueFallback;
            _umbracoContextAccessor = umbracoContextAccessor;

            requestConfig.OnChange(x => _requestConfig = x);
        }
 public DefaultUrlProvider(IOptions <RequestHandlerSettings> requestSettings, ILogger <DefaultUrlProvider> logger, ISiteDomainMapper siteDomainMapper, IUmbracoContextAccessor umbracoContextAccessor, UriUtility uriUtility)
 {
     _requestSettings        = requestSettings.Value;
     _logger                 = logger;
     _siteDomainMapper       = siteDomainMapper;
     _uriUtility             = uriUtility;
     _umbracoContextAccessor = umbracoContextAccessor;
 }
Example #3
0
 public DefaultMediaUrlProvider(MediaUrlGeneratorCollection mediaPathGenerators, UriUtility uriUtility)
 {
     _mediaPathGenerators = mediaPathGenerators ?? throw new ArgumentNullException(nameof(mediaPathGenerators));
     _uriUtility          = uriUtility;
 }
Example #4
0
 public DefaultUrlProvider(IOptionsMonitor <RequestHandlerSettings> requestSettings, ILogger <DefaultUrlProvider> logger,
                           ISiteDomainMapper siteDomainMapper, IUmbracoContextAccessor umbracoContextAccessor, UriUtility uriUtility)
     : this(requestSettings, logger, siteDomainMapper, umbracoContextAccessor, uriUtility,
            StaticServiceProvider.Instance.GetRequiredService <ILocalizationService>())
 {
 }