Esempio n. 1
0
 public void HandleEvent(EntityInsertedEvent <TopicTemplate> eventMessage)
 {
     _cacheManager.RemoveByPrefix(NopModelCacheDefaults.TopicTemplatePrefixCacheKey);
 }
Esempio n. 2
0
 /// <summary>
 /// Handle the add shopping cart item event
 /// </summary>
 /// <param name="eventMessage">The event message.</param>
 public async Task HandleEventAsync(EntityInsertedEvent <ShoppingCartItem> eventMessage)
 {
     //handle event
     await _sendinBlueMarketingAutomationManager.HandleShoppingCartChangedEventAsync(eventMessage.Entity);
 }
Esempio n. 3
0
 public void HandleEvent(EntityInsertedEvent <ProductManufacturer> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopCatalogDefaults.ProductPricePatternCacheKey);
     _cacheManager.RemoveByPattern(NopCatalogDefaults.ProductManufacturerIdsPatternCacheKey);
 }
Esempio n. 4
0
 public void HandleEvent(EntityInsertedEvent <Order> eventMessage)
 {
     _cacheManager.RemoveByPrefix(NopModelCacheDefaults.HomepageBestsellersIdsPrefixCacheKey);
     _cacheManager.RemoveByPrefix(NopModelCacheDefaults.ProductsAlsoPurchasedIdsPrefixCacheKey);
 }
Esempio n. 5
0
 public void HandleEvent(EntityInsertedEvent <Poll> eventMessage)
 {
     _cacheManager.RemoveByPrefix(NopModelCacheDefaults.PollsPrefixCacheKey);
 }
Esempio n. 6
0
 public void HandleEvent(EntityInsertedEvent <Vendor> eventMessage)
 {
     _cacheManager.Remove(NopModelCacheDefaults.VendorNavigationModelKey);
 }
Esempio n. 7
0
 public void HandleEvent(EntityInsertedEvent <ProductManufacturer> eventMessage)
 {
     _cacheManager.RemoveByPrefix(string.Format(NopModelCacheDefaults.ManufacturerHasFeaturedProductsPrefixCacheKeyById, eventMessage.Entity.ManufacturerId));
 }
 //related products
 public void HandleEvent(EntityInsertedEvent <RelatedProduct> eventMessage)
 {
     _cacheManager.RemoveByPattern(PRODUCTS_RELATED_IDS_PATTERN_KEY);
 }
 //Topics
 public void HandleEvent(EntityInsertedEvent <Topic> eventMessage)
 {
     _cacheManager.RemoveByPattern(TOPIC_PATTERN_KEY);
     _cacheManager.RemoveByPattern(SITEMAP_PATTERN_KEY);
 }
 //products
 public void HandleEvent(EntityInsertedEvent <Product> eventMessage)
 {
     _cacheManager.RemoveByPattern(SITEMAP_PATTERN_KEY);
 }
 //product tags
 public void HandleEvent(EntityInsertedEvent <ProductTag> eventMessage)
 {
     _cacheManager.RemoveByPattern(PRODUCTTAG_POPULAR_PATTERN_KEY);
     _cacheManager.RemoveByPattern(PRODUCTTAG_BY_PRODUCT_PATTERN_KEY);
 }
 //vendors
 public void HandleEvent(EntityInsertedEvent <Vendor> eventMessage)
 {
     _cacheManager.RemoveByPattern(VENDOR_NAVIGATION_PATTERN_KEY);
 }
 public void HandleEvent(EntityInsertedEvent <Setting> eventMessage)
 {
     _cacheManager.RemoveByPattern(PICTURE_URL_PATTERN_KEY);
 }
Esempio n. 14
0
 //vendors
 /// <returns>A task that represents the asynchronous operation</returns>
 public async Task HandleEventAsync(EntityInsertedEvent <Vendor> eventMessage)
 {
     await _staticCacheManager.RemoveByPrefixAsync(NopModelCacheDefaults.VendorsListPrefixCacheKey);
 }
 public void HandleEvent(EntityInsertedEvent <ProductTemplate> eventMessage)
 {
     _cacheManager.RemoveByPattern(PRODUCT_TEMPLATE_PATTERN_KEY);
 }
 //Pictures
 public void HandleEvent(EntityInsertedEvent <Picture> eventMessage)
 {
 }
 public void HandleEvent(EntityInsertedEvent <TopicTemplate> eventMessage)
 {
     _cacheManager.RemoveByPattern(TOPIC_TEMPLATE_PATTERN_KEY);
 }
 //Product picture mappings
 public void HandleEvent(EntityInsertedEvent <ProductPicture> eventMessage)
 {
     _cacheManager.RemoveByPattern(string.Format(PRODUCT_DEFAULTPICTURE_PATTERN_KEY_BY_ID, eventMessage.Entity.ProductId));
     _cacheManager.RemoveByPattern(string.Format(PRODUCT_DETAILS_PICTURES_PATTERN_KEY_BY_ID, eventMessage.Entity.ProductId));
 }
Esempio n. 19
0
 public void HandleEvent(EntityInsertedEvent <Manufacturer> eventMessage)
 {
     _cacheManager.RemoveByPrefix(NopModelCacheDefaults.ManufacturerNavigationPrefixCacheKey);
     _cacheManager.RemoveByPrefix(NopModelCacheDefaults.SitemapPrefixCacheKey);
 }
 //Polls
 public void HandleEvent(EntityInsertedEvent <Poll> eventMessage)
 {
     _cacheManager.RemoveByPattern(POLLS_PATTERN_KEY);
 }
Esempio n. 21
0
 public void HandleEvent(EntityInsertedEvent <ProductSpecificationAttribute> eventMessage)
 {
     _cacheManager.RemoveByPrefix(NopModelCacheDefaults.SpecsFilterPrefixCacheKey);
 }
 //Blog posts
 public void HandleEvent(EntityInsertedEvent <BlogPost> eventMessage)
 {
     _cacheManager.RemoveByPattern(BLOG_PATTERN_KEY);
 }
Esempio n. 23
0
 public void HandleEvent(EntityInsertedEvent <Picture> eventMessage)
 {
     _cacheManager.RemoveByPrefix(NopModelCacheDefaults.ProductAttributePicturePrefixCacheKey);
     _cacheManager.RemoveByPrefix(NopModelCacheDefaults.CartPicturePrefixCacheKey);
 }
 //News items
 public void HandleEvent(EntityInsertedEvent <NewsItem> eventMessage)
 {
     _cacheManager.RemoveByPattern(NEWS_PATTERN_KEY);
 }
Esempio n. 25
0
 public void HandleEvent(EntityInsertedEvent <NewsItem> eventMessage)
 {
     _cacheManager.RemoveByPrefix(NopModelCacheDefaults.NewsPrefixCacheKey);
     _cacheManager.RemoveByPrefix(NopModelCacheDefaults.SitemapPrefixCacheKey);
 }
 //State/province
 public void HandleEvent(EntityInsertedEvent <StateProvince> eventMessage)
 {
     _cacheManager.RemoveByPattern(STATEPROVINCES_PATTERN_KEY);
 }
Esempio n. 27
0
 public void HandleEvent(EntityInsertedEvent <Category> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopCatalogDefaults.ProductCategoryIdsPatternCacheKey);
 }
 //templates
 public void HandleEvent(EntityInsertedEvent <CategoryTemplate> eventMessage)
 {
     _cacheManager.RemoveByPattern(CATEGORY_TEMPLATE_PATTERN_KEY);
 }
Esempio n. 29
0
 public void HandleEvent(EntityInsertedEvent <TierPrice> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopCatalogDefaults.ProductPricePatternCacheKey);
 }
Esempio n. 30
0
 public void HandleEvent(EntityInsertedEvent <ReturnRequestReason> eventMessage)
 {
     _cacheManager.RemoveByPrefix(NopModelCacheDefaults.ReturnRequestReasonsPrefixCacheKey);
 }