コード例 #1
0
 public TargetGroupService(
     SmartDbContext db,
     IRuleService ruleService,
     IStoreContext storeContext,
     LocalizedEntityHelper localizedEntityHelper)
     : base(RuleScope.Customer)
 {
     _db                    = db;
     _ruleService           = ruleService;
     _storeContext          = storeContext;
     _localizedEntityHelper = localizedEntityHelper;
 }
コード例 #2
0
 public ProductRuleProvider(
     ICommonServices services,
     IRuleService ruleService,
     ICatalogSearchService catalogSearchService,
     ICategoryService categoryService,
     LocalizedEntityHelper localizedEntityHelper,
     CatalogSettings catalogSettings)
     : base(RuleScope.Product)
 {
     _services              = services;
     _ruleService           = ruleService;
     _catalogSearchService  = catalogSearchService;
     _categoryService       = categoryService;
     _localizedEntityHelper = localizedEntityHelper;
     _catalogSettings       = catalogSettings;
 }