Ejemplo n.º 1
0
 public CustomerReviewService(ICustomerReviews customerReviewsApi, IApiChangesWatcher apiChangesWatcher, IStorefrontMemoryCache memoryCache, IWorkContextAccessor workContextAccessor)
 {
     _customerReviewsApi  = customerReviewsApi;
     _apiChangesWatcher   = apiChangesWatcher;
     _memoryCache         = memoryCache;
     _workContextAccessor = workContextAccessor;
 }
 public SubscriptionService(ISubscriptionModule subscriptionApi, IWorkContextAccessor workContextAccessor, IStorefrontMemoryCache memoryCache, IOptions <StorefrontOptions> options)
 {
     _subscriptionApi     = subscriptionApi;
     _workContextAccessor = workContextAccessor;
     _memoryCache         = memoryCache;
     _options             = options.Value;
 }
Ejemplo n.º 3
0
 public MenuLinkListServiceImpl(IMenu cmsApi, ICatalogService catalogService, IStorefrontMemoryCache memoryCache, IApiChangesWatcher apiChangesWatcher)
 {
     _cmsApi            = cmsApi;
     _catalogService    = catalogService;
     _memoryCache       = memoryCache;
     _apiChangesWatcher = apiChangesWatcher;
 }
Ejemplo n.º 4
0
 public CatalogService(IWorkContextAccessor workContextAccessor
                       , ICatalogModuleCategories categoriesApi
                       , ICatalogModuleProducts productsApi
                       , ICatalogModuleSearch searchApi
                       , IPricingService pricingService
                       , IMemberService customerService
                       , ISubscriptionService subscriptionService
                       , IInventoryService inventoryService
                       , IStorefrontMemoryCache memoryCache
                       , IApiChangesWatcher changesWatcher
                       , IStorefrontUrlBuilder storefrontUrlBuilder)
 {
     _workContextAccessor  = workContextAccessor;
     _categoriesApi        = categoriesApi;
     _productsApi          = productsApi;
     _searchApi            = searchApi;
     _categoriesApi        = categoriesApi;
     _pricingService       = pricingService;
     _inventoryService     = inventoryService;
     _customerService      = customerService;
     _subscriptionService  = subscriptionService;
     _memoryCache          = memoryCache;
     _apiChangesWatcher    = changesWatcher;
     _storefrontUrlBuilder = storefrontUrlBuilder;
 }
Ejemplo n.º 5
0
 public UserStoreStub(ISecurity platformSecurityApi, IMemberService memberService, IStorefrontMemoryCache memoryCache, IOptions <StorefrontOptions> options)
 {
     _platformSecurityApi = platformSecurityApi;
     _memoryCache         = memoryCache;
     _memberService       = memberService;
     _options             = options.Value;
 }
 public CreateStorefrontRolesMiddleware(RequestDelegate next, ISecurity platformSecurityApi, IStorefrontMemoryCache memoryCache, ILogger <CreateStorefrontRolesMiddleware> logger)
 {
     _next                = next;
     _memoryCache         = memoryCache;
     _platformSecurityApi = platformSecurityApi;
     _looger              = logger;
 }
Ejemplo n.º 7
0
 public SlugRouteService(IStorefrontMemoryCache memoryCache, ICommerce coreApi, ICatalogService catalogService, ICatalogModuleProducts catalogProductsApi, IApiChangesWatcher apiChangesWatcher)
 {
     _memoryCache       = memoryCache;
     _coreApi           = coreApi;
     _catalogService    = catalogService;
     _apiChangesWatcher = apiChangesWatcher;
 }
Ejemplo n.º 8
0
 public MarketingService(IMarketingModuleDynamicContent dynamicContentApi, IStorefrontMemoryCache memoryCache, IApiChangesWatcher changesWatcher, IWorkContextAccessor workContextAccessor)
 {
     _dynamicContentApi   = dynamicContentApi;
     _memoryCache         = memoryCache;
     _apiChangesWatcher   = changesWatcher;
     _workContextAccessor = workContextAccessor;
 }
Ejemplo n.º 9
0
 public DemoMemberService(ICustomerModule customerApi, IDemoSearch demoSearchApi, IStorefrontMemoryCache memoryCache, IApiChangesWatcher apiChangesWatcher)
     : base(customerApi, memoryCache, apiChangesWatcher)
 {
     _customerApi       = customerApi;
     _demoSearchApi     = demoSearchApi;
     _memoryCache       = memoryCache;
     _apiChangesWatcher = apiChangesWatcher;
 }
 public CognitiveRecommendationsProvider(IWorkContextAccessor workContextAccessor, ICatalogService catalogService, IRecommendations recommendationsApi,
                                         IStorefrontMemoryCache memoryCache)
 {
     _workContextAccessor = workContextAccessor;
     _catalogService      = catalogService;
     _recommendationsApi  = recommendationsApi;
     _memoryCache         = memoryCache;
 }
Ejemplo n.º 11
0
 public StaticContentService(IStorefrontMemoryCache memoryCache, IStaticContentItemFactory contentItemFactory,
                             IContentBlobProvider contentBlobProvider, IStaticContentLoaderFactory metadataFactory)
 {
     _contentItemFactory  = contentItemFactory;
     _contentBlobProvider = contentBlobProvider;
     _memoryCache         = memoryCache;
     _metadataFactory     = metadataFactory;
 }
Ejemplo n.º 12
0
 public CartService(ICartModule cartModule, IWorkContextAccessor workContextAccessor,
                    IStorefrontMemoryCache memoryCache, UserManager <User> userManager)
 {
     _cartApi             = cartModule;
     _memoryCache         = memoryCache;
     _workContextAccessor = workContextAccessor;
     _userManager         = userManager;
 }
 public StoreService(IStoreModule storeApi, IStorefrontMemoryCache memoryCache, IApiChangesWatcher apiChangesWatcher, IPaymentModule paymentModule, ITaxModule taxModule)
 {
     _storeApi          = storeApi;
     _memoryCache       = memoryCache;
     _apiChangesWatcher = apiChangesWatcher;
     _paymentModule     = paymentModule;
     _taxModule         = taxModule;
 }
Ejemplo n.º 14
0
 public CustomerReviewService(
     ICustomerReviews customerReviewsApi,
     IStorefrontMemoryCache memoryCache,
     IApiChangesWatcher apiChangesWatcher)
 {
     _customerReviewsApi = customerReviewsApi;
     _memoryCache        = memoryCache;
     _apiChangesWatcher  = apiChangesWatcher;
 }
Ejemplo n.º 15
0
 public StaticContentService(IStorefrontMemoryCache memoryCache, IWorkContextAccessor workContextAccessor,
                             IStorefrontUrlBuilder urlBuilder, IStaticContentItemFactory contentItemFactory,
                             IContentBlobProvider contentBlobProvider)
 {
     _urlBuilder          = urlBuilder;
     _contentItemFactory  = contentItemFactory;
     _contentBlobProvider = contentBlobProvider;
     _memoryCache         = memoryCache;
     _markdownPipeline    = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build();
 }
Ejemplo n.º 16
0
 public ShopifyLiquidThemeEngine(IStorefrontMemoryCache memoryCache, IWorkContextAccessor workContextAccessor,
                                 IHttpContextAccessor httpContextAccessor,
                                 IStorefrontUrlBuilder storeFrontUrlBuilder, IContentBlobProvider contentBlobProvder, IOptions <LiquidThemeEngineOptions> options)
 {
     _workContextAccessor  = workContextAccessor;
     _httpContextAccessor  = httpContextAccessor;
     _storeFrontUrlBuilder = storeFrontUrlBuilder;
     _options           = options.Value;
     _memoryCache       = memoryCache;
     _themeBlobProvider = contentBlobProvder;
 }
Ejemplo n.º 17
0
 public DemoCartBuilder(
     IWorkContextAccessor workContextAccessor,
     ICartService cartService,
     ICatalogService catalogSearchService,
     IStorefrontMemoryCache memoryCache,
     IPromotionEvaluator promotionEvaluator,
     ITaxEvaluator taxEvaluator,
     ISubscriptionService subscriptionService
     )
     : base(workContextAccessor, cartService, catalogSearchService, memoryCache, promotionEvaluator, taxEvaluator, subscriptionService)
 {
 }
Ejemplo n.º 18
0
 public PricingService(IPricingModule pricingApi,
                       ITaxEvaluator taxEvaluator,
                       IPromotionEvaluator promotionEvaluator,
                       IInventoryService inventoryService, IStorefrontMemoryCache memoryCache, IApiChangesWatcher apiChangesWatcher)
 {
     _pricingApi         = pricingApi;
     _taxEvaluator       = taxEvaluator;
     _promotionEvaluator = promotionEvaluator;
     _inventoryService   = inventoryService;
     _memoryCache        = memoryCache;
     _apiChangesWatcher  = apiChangesWatcher;
 }
Ejemplo n.º 19
0
 public FileSystemContentBlobProvider(IOptions <FileSystemBlobContentOptions> options, IStorefrontMemoryCache memoryCache)
 {
     _options     = options.Value;
     _memoryCache = memoryCache;
     //Create fileSystemWatcher instance only when rootFolder exist to prevent whole application crash on initialization phase.
     if (Directory.Exists(_options.Path))
     {
         //It is very important to have rootPath with leading slash '\' without this any changes won't reflected
         var rootPath = _options.Path.TrimEnd('\\') + '\\';
         _fileSystemWatcher = new PhysicalFilesWatcher(rootPath, new FileSystemWatcher(rootPath), false);
     }
 }
 public DynamicAssociationsProvider(
     ICatalogService catalogService,
     IAssociations associationsApi,
     IStorefrontMemoryCache memoryCache,
     IApiChangesWatcher apiChangesWatcher
     )
 {
     _catalogService    = catalogService;
     _associationsApi   = associationsApi;
     _memoryCache       = memoryCache;
     _apiChangesWatcher = apiChangesWatcher;
 }
        public AzureBlobContentProvider(IOptions <AzureBlobContentOptions> options, IStorefrontMemoryCache memoryCache, IBlobChangesWatcher watcher)
        {
            _options     = options.Value;
            _memoryCache = memoryCache;

            if (!CloudStorageAccount.TryParse(_options.ConnectionString, out _cloudStorageAccount))
            {
                throw new StorefrontException("Failed to get valid connection string");
            }
            _cloudBlobClient = _cloudStorageAccount.CreateCloudBlobClient();
            _container       = _cloudBlobClient.GetContainerReference(_options.Container);
            _watcher         = watcher;
        }
Ejemplo n.º 22
0
 public CartBuilder(IWorkContextAccessor workContextAccessor, ICartService cartService,
                    ICatalogService catalogSearchService,
                    IStorefrontMemoryCache memoryCache, IPromotionEvaluator promotionEvaluator, ITaxEvaluator taxEvaluator,
                    ISubscriptionService subscriptionService)
 {
     _cartService         = cartService;
     _catalogService      = catalogSearchService;
     _memoryCache         = memoryCache;
     _workContextAccessor = workContextAccessor;
     _promotionEvaluator  = promotionEvaluator;
     _taxEvaluator        = taxEvaluator;
     _subscriptionService = subscriptionService;
 }
Ejemplo n.º 23
0
 public ShopifyLiquidThemeEngine(IStorefrontMemoryCache memoryCache, IWorkContextAccessor workContextAccessor, IHttpContextAccessor httpContextAccessor,
                                 IStorefrontUrlBuilder storeFrontUrlBuilder, IContentBlobProvider contentBlobProvider, ISassFileManager sassFileManager, IOptions <LiquidThemeEngineOptions> options, IFeaturesAgent featuresAgent)
 {
     _workContextAccessor     = workContextAccessor;
     _httpContextAccessor     = httpContextAccessor;
     UrlBuilder               = storeFrontUrlBuilder;
     _options                 = options.Value;
     _memoryCache             = memoryCache;
     _themeBlobProvider       = contentBlobProvider;
     _sassFileManager         = sassFileManager;
     _featuresAgent           = featuresAgent;
     SassCompiler.FileManager = sassFileManager;
 }
Ejemplo n.º 24
0
 public DemoCartService(
     ICartModule cartModule,
     IWorkContextAccessor workContextAccessor,
     IStorefrontMemoryCache memoryCache,
     UserManager<User> userManager,
     ICatalogService catalogService)
     : base(cartModule, workContextAccessor, memoryCache, userManager)
 {
     _userManager = userManager;
     _workContextAccessor = workContextAccessor;
     _cartApi = cartModule;
     _memoryCache = memoryCache;
     _catalogService = catalogService;
 }
 public DemoCatalogService(IWorkContextAccessor workContextAccessor,
                           ICatalogModuleCategories categoriesApi, ICatalogModuleProducts productsApi,
                           ICatalogModuleAssociations associationsApi, ICatalogModuleIndexedSearch searchApi,
                           IPricingService pricingService, IMemberService customerService,
                           ISubscriptionService subscriptionService, IInventoryService inventoryService,
                           IStorefrontMemoryCache memoryCache, IApiChangesWatcher changesWatcher,
                           IStorefrontUrlBuilder storefrontUrlBuilder) :
     base(workContextAccessor,
          categoriesApi, productsApi, associationsApi, searchApi,
          pricingService, customerService, subscriptionService, inventoryService,
          memoryCache, changesWatcher,
          storefrontUrlBuilder)
 {
 }
Ejemplo n.º 26
0
 public FileSystemCountriesService(IStorefrontMemoryCache cacheManager, IOptions <FileSystemCountriesOptions> options)
 {
     _options     = options.Value;
     _memoryCache = cacheManager;
 }
Ejemplo n.º 27
0
 public PromotionEvaluator(IMarketingModulePromotion promiotionApi, IStorefrontMemoryCache memoryCache)
 {
     _promiotionApi = promiotionApi;
     _memoryCache   = memoryCache;
 }
Ejemplo n.º 28
0
 public InventoryService(IInventoryModule inventoryApi, IStorefrontMemoryCache memoryCache, IApiChangesWatcher apiChangesWatcher)
 {
     _inventoryApi      = inventoryApi;
     _memoryCache       = memoryCache;
     _apiChangesWatcher = apiChangesWatcher;
 }
Ejemplo n.º 29
0
 public MemberService(ICustomerModule customerApi, IStorefrontMemoryCache memoryCache, IApiChangesWatcher changesWatcher)
 {
     _customerApi       = customerApi;
     _memoryCache       = memoryCache;
     _apiChangesWatcher = changesWatcher;
 }
Ejemplo n.º 30
0
 public DemoMemberService(ICustomerModule customerApi, IStorefrontMemoryCache memoryCache, IApiChangesWatcher changesWatcher)
     : base(customerApi, memoryCache, changesWatcher)
 {
     _customerApi = customerApi;
 }