コード例 #1
0
 public async Task Handle(EntityDeleted <Order> eventMessage, CancellationToken cancellationToken)
 {
     await _cacheManager.RemoveByPrefix(PRODUCT_PRICE_PATTERN_KEY);
 }
コード例 #2
0
 public void HandleEvent(EntityDeleted <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));
 }
コード例 #3
0
 public void HandleEvent(EntityDeleted <BlogPost> eventMessage)
 {
     _cacheManager.RemoveByPattern(BLOG_PATTERN_KEY);
 }
コード例 #4
0
 public void HandleEvent(EntityDeleted <ProductTag> eventMessage)
 {
     _cacheManager.RemoveByPattern(PRODUCTTAG_POPULAR_PATTERN_KEY);
     _cacheManager.RemoveByPattern(PRODUCTTAG_BY_PRODUCT_PATTERN_KEY);
 }
コード例 #5
0
 public void HandleEvent(EntityDeleted <Topic> eventMessage)
 {
     _cacheManager.RemoveByPattern(TOPIC_PATTERN_KEY);
     _cacheManager.RemoveByPattern(SITEMAP_PATTERN_KEY);
 }
コード例 #6
0
 public void HandleEvent(EntityDeleted <StateProvince> eventMessage)
 {
     _cacheManager.RemoveByPattern(STATEPROVINCES_PATTERN_KEY);
 }
コード例 #7
0
 public void HandleEvent(EntityDeleted <Store> eventMessage)
 {
     _cacheManager.RemoveByPattern(SHOPHEADER_MODEL_PATTERN_KEY);
 }
コード例 #8
0
 public void HandleEvent(EntityDeleted <Manufacturer> eventMessage)
 {
     _cacheManager.RemoveByPattern(MANUFACTURERS_LIST_PATTERN_KEY);
 }
コード例 #9
0
 public void HandleEvent(EntityDeleted <Vendor> eventMessage)
 {
     _cacheManager.RemoveByPattern(VENDORS_LIST_PATTERN_KEY);
 }
コード例 #10
0
 public void HandleEvent(EntityDeleted <SpecificationAttribute> eventMessage)
 {
     _cacheManager.RemoveByPattern(SPEC_ATTRIBUTES_PATTERN_KEY);
 }
コード例 #11
0
 public void HandleEvent(EntityDeleted <Category> eventMessage)
 {
     _cacheManager.RemoveByPattern(CATEGORIES_LIST_PATTERN_KEY);
 }
コード例 #12
0
 public async Task Handle(EntityDeleted <ManufacturerTemplate> eventMessage, CancellationToken cancellationToken)
 {
     await _cacheManager.RemoveByPrefix(ModelCacheEventConst.MANUFACTURER_TEMPLATE_PATTERN_KEY);
 }
 public async Task Handle(EntityDeleted <ReturnRequestReason> eventMessage, CancellationToken cancellationToken)
 {
     await _cacheBase.RemoveByPrefix(ModelCacheEventConst.RETURNREQUESTREASONS_PATTERN_KEY);
 }
コード例 #14
0
 public async Task Handle(EntityDeleted <TaxRate> eventMessage, CancellationToken cancellationToken)
 {
     await _cacheManager.RemoveByPrefix(ALL_TAX_RATES_PATTERN_KEY);
 }
コード例 #15
0
 public void HandleEvent(EntityDeleted <OrderItem> eventMessage)
 {
     _cacheManager.RemoveByPattern(HOMEPAGE_BESTSELLERS_IDS_PATTERN_KEY);
     _cacheManager.RemoveByPattern(PRODUCTS_ALSO_PURCHASED_IDS_PATTERN_KEY);
 }
コード例 #16
0
 public void HandleEvent(EntityDeleted <Currency> eventMessage)
 {
     _cacheManager.RemoveByPattern(AVAILABLE_CURRENCIES_PATTERN_KEY);
 }
コード例 #17
0
 public void HandleEvent(EntityDeleted <ProductPicture> eventMessage)
 {
     _cacheManager.RemoveByPattern(PRODUCT_DEFAULTPICTURE_PATTERN_KEY);
 }
コード例 #18
0
 public void HandleEvent(EntityDeleted <ProductManufacturer> eventMessage)
 {
     _cacheManager.RemoveByPattern(PRODUCT_MANUFACTURERS_PATTERN_KEY);
     _cacheManager.RemoveByPattern(MANUFACTURER_HAS_FEATURED_PRODUCTS_PATTERN_KEY);
 }
コード例 #19
0
 public void HandleEvent(EntityDeleted <CustomerRole> eventMessage)
 {
     _cacheManager.RemoveByPattern(CATEGORY_NAVIGATION_PATTERN_KEY);
     _cacheManager.RemoveByPattern(CATEGORY_CHILD_IDENTIFIERS_PATTERN_KEY);
 }
コード例 #20
0
 public void HandleEvent(EntityDeleted <ProductCategory> eventMessage)
 {
     _cacheManager.RemoveByPattern(CATEGORY_NAVIGATION_PATTERN_KEY);
     _cacheManager.RemoveByPattern(CATEGORY_HAS_FEATURED_PRODUCTS_PATTERN_KEY);
 }
コード例 #21
0
 public void HandleEvent(EntityDeleted <Setting> eventMessage)
 {
     _cacheManager.RemoveByPattern(PICTURE_URL_PATTERN_KEY);
 }
コード例 #22
0
 public void HandleEvent(EntityDeleted <ProductSpecificationAttribute> eventMessage)
 {
     _cacheManager.RemoveByPattern(PRODUCT_SPECS_PATTERN_KEY);
 }
コード例 #23
0
 public void HandleEvent(EntityDeleted <RelatedProduct> eventMessage)
 {
     _cacheManager.RemoveByPattern(PRODUCTS_RELATED_IDS_PATTERN_KEY);
 }
コード例 #24
0
 public void HandleEvent(EntityDeleted <CategoryTemplate> eventMessage)
 {
     _cacheManager.RemoveByPattern(CATEGORY_TEMPLATE_PATTERN_KEY);
 }
コード例 #25
0
 public void HandleEvent(EntityDeleted <Picture> eventMessage)
 {
 }
コード例 #26
0
 public void HandleEvent(EntityDeleted <ManufacturerTemplate> eventMessage)
 {
     _cacheManager.RemoveByPattern(MANUFACTURER_TEMPLATE_PATTERN_KEY);
 }
コード例 #27
0
 public void HandleEvent(EntityDeleted <Poll> eventMessage)
 {
     _cacheManager.RemoveByPattern(POLLS_PATTERN_KEY);
 }
コード例 #28
0
 public void HandleEvent(EntityDeleted <ProductTemplate> eventMessage)
 {
     _cacheManager.RemoveByPattern(PRODUCT_TEMPLATE_PATTERN_KEY);
 }
コード例 #29
0
 //News comments
 public void HandleEvent(EntityDeleted <NewsComment> eventMessage)
 {
     _cacheManager.RemoveByPattern(NEWS_COMMENTS_PATTERN_KEY);
 }
コード例 #30
0
        public async Task Handle(EntityDeleted <ProductManufacturer> eventMessage, CancellationToken cancellationToken)
        {
            await _cacheManager.RemoveByPrefix(PRODUCT_PRICE_PATTERN_KEY);

            await _cacheManager.RemoveByPrefix(DISCOUNT_PRODUCT_MANUFACTURER_IDS_PATTERN_KEY);
        }