// Remove when cleaning up - just looking around private void CheckNewPromotions(ShirtVariation currentContent) { //ServiceLocator.Current.GetInstance<IPromotionEngine>().Run(OrderGroup); PromotionProcessorResolver pr = ServiceLocator.Current.GetInstance <PromotionProcessorResolver>(); IContentLoader cl = ServiceLocator.Current.GetInstance <IContentLoader>(); CampaignInfoExtractor ci = ServiceLocator.Current.GetInstance <CampaignInfoExtractor>(); }
public CustomPromotionEngineContentLoader( MyPriceCalculator myPriceCalculator, IContentLoader contentLoader, CampaignInfoExtractor campaignInfoExtractor, ReadOnlyPricingLoader readOnlyPricingLoader) : base(contentLoader, campaignInfoExtractor, readOnlyPricingLoader) { _myPriceCalculator = myPriceCalculator; _contentLoader = contentLoader; }
/// <summary> /// Initializes a new instance of the <see cref="MarketContentLoader" /> class. /// </summary> /// <param name="contentLoader">Service used to load content data.</param> /// <param name="campaignInfoExtractor">Used to extract informations about campaigns and promotions.</param> /// <param name="promotionProcessorResolver">The promotion processor resolver.</param> public MarketContentLoader( IContentLoader contentLoader, CampaignInfoExtractor campaignInfoExtractor, PromotionProcessorResolver promotionProcessorResolver) { _contentLoader = contentLoader; _campaignInfoExtractor = campaignInfoExtractor; _promotionProcessorResolver = promotionProcessorResolver; }
public FoundationPromotionEngineContentLoader( IContentLoader contentLoader, CampaignInfoExtractor campaignInfoExtractor, IPriceService priceService, ReferenceConverter referenceConverter, ISynchronizedObjectInstanceCache objectInstanceCache, MarketingOptions marketingOptions, IContentCacheKeyCreator contentCacheKeyCreator) : base(contentLoader, campaignInfoExtractor, priceService, referenceConverter, objectInstanceCache, marketingOptions, contentCacheKeyCreator) { _referenceConverter = referenceConverter; }