Пример #1
0
 public RedirectsMiddleware(RequestDelegate next, IEventAggregator eventAggregator, IRuntimeState runtimeState, IRedirectsService redirectsService)
 {
     _next             = next;
     _eventAggregator  = eventAggregator;
     _runtimeState     = runtimeState;
     _redirectsService = redirectsService;
 }
Пример #2
0
 public NotFoundRedirectController(
     IRedirectsService redirectsService,
     DdsRedirectRepository ddsRedirectRepository)
 {
     _redirectsService      = redirectsService ?? throw new ArgumentNullException(nameof(redirectsService));
     _ddsRedirectRepository = ddsRedirectRepository ?? throw new ArgumentNullException(nameof(ddsRedirectRepository));
 }
Пример #3
0
 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;
 }
Пример #5
0
 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;
 }
Пример #7
0
 public DataStoreHandler()
 {
     _redirectsService = ServiceLocator.Current.GetInstance <IRedirectsService>();
 }
Пример #8
0
 public RedirectsController(IRedirectsService redirectsService)
 {
     _redirects = redirectsService;
 }
Пример #9
0
 /// <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));
 }
Пример #10
0
 public RedirectsInjectedModule(IUmbracoContextAccessor umbracoContextAccessor, IDomainService domains, IRedirectsService redirects)
 {
     _umbracoContextAccessor = umbracoContextAccessor;
     _domains   = domains;
     _redirects = redirects;
 }