public FoundationSearchProvider(
     LocalizationService localizationService,
     ISiteDefinitionResolver siteDefinitionResolver,
     IContentTypeRepository <ContentType> contentTypeRepository,
     EditUrlResolver editUrlResolver,
     ServiceAccessor <SiteDefinition> currentSiteDefinition,
     LanguageResolver languageResolver,
     UrlResolver urlResolver,
     TemplateResolver templateResolver,
     UIDescriptorRegistry uiDescriptorRegistry,
     Mediachase.Commerce.Catalog.ReferenceConverter referenceConverter,
     ServiceAccessor <SearchManager> searchManagerAccessor,
     IContentLoader contentLoader,
     IModuleResourceResolver moduleResourceResolver,
     ServiceAccessor <SiteContext> siteContextAccessor,
     IClient client) :
     base(localizationService,
          siteDefinitionResolver,
          contentTypeRepository,
          editUrlResolver,
          currentSiteDefinition,
          languageResolver,
          urlResolver,
          templateResolver,
          uiDescriptorRegistry)
 {
     _languageResolver      = languageResolver;
     _localizationService   = localizationService;
     _referenceConverter    = referenceConverter;
     _searchManagerAccessor = searchManagerAccessor;
     _contentLoader         = contentLoader;
     _siteContextAcessor    = siteContextAccessor;
     EditPath = (contentData, contentLink, languageName) =>
     {
         var catalogPath = moduleResourceResolver.ResolvePath("Commerce", "Catalog");
         return($"{catalogPath}#context=epi.cms.contentdata:///{contentLink}");
     };
     _client = client;
 }
Example #2
0
 public UrlHelper(IModuleResourceResolver moduleResourceResolver)
 {
     _moduleResourceResolver = moduleResourceResolver;
 }