public RedirectsMiddleware(RequestDelegate next, IEventAggregator eventAggregator, IRuntimeState runtimeState, IRedirectsService redirectsService) { _next = next; _eventAggregator = eventAggregator; _runtimeState = runtimeState; _redirectsService = redirectsService; }
public NotFoundRedirectController( IRedirectsService redirectsService, DdsRedirectRepository ddsRedirectRepository) { _redirectsService = redirectsService ?? throw new ArgumentNullException(nameof(redirectsService)); _ddsRedirectRepository = ddsRedirectRepository ?? throw new ArgumentNullException(nameof(ddsRedirectRepository)); }
public RedirectsController(ILogger <RedirectsController> logger, IRedirectsService redirectsService, RedirectsBackOfficeHelper backOffice, IContentService contentService, IMediaService mediaService, IUmbracoContextAccessor umbracoContextAccessor) { _logger = logger; _redirects = redirectsService; _backOffice = backOffice; _contentService = contentService; _mediaService = mediaService; _umbracoContextAccessor = umbracoContextAccessor; }
public DefaultPagesApiOperations(IPagesService pages, IPageService page, IContentService content, IWidgetService widget, IWidgetsService widgets, IRedirectsService redirects, IRedirectService redirect, ISitemapService sitemap) { Pages = pages; Page = page; Content = content; Widget = widget; Widgets = widgets; Redirect = redirect; Redirects = redirects; Sitemap = sitemap; }
public ManageRedirectsController(IRedirectsService redirectsService, IRedirectModelFactory redirectModelFactory, ILocalizationService localizationService, IProductService productService, IBlogPostService blogPostService, IPagesService pagesService) { _redirectsService = redirectsService; _redirectModelFactory = redirectModelFactory; _localizationService = localizationService; _productService = productService; _blogPostService = blogPostService; _pagesService = pagesService; }
public DataStoreHandler() { _redirectsService = ServiceLocator.Current.GetInstance <IRedirectsService>(); }
public RedirectsController(IRedirectsService redirectsService) { _redirects = redirectsService; }
/// <summary> /// Returns the calculated destination URL for the specified <paramref name="redirect"/>. /// </summary> /// <param name="redirect">The redirect.</param> /// <param name="uri">The inbound URL.</param> /// <param name="redirectsService">A reference to the current redirects service.</param> /// <returns>The destination URL.</returns> public static string GetDestinationUrl(this OutboundRedirect redirect, Uri uri, IRedirectsService redirectsService) { return(redirectsService.GetDestinationUrl(redirect, uri)); }
public RedirectsInjectedModule(IUmbracoContextAccessor umbracoContextAccessor, IDomainService domains, IRedirectsService redirects) { _umbracoContextAccessor = umbracoContextAccessor; _domains = domains; _redirects = redirects; }