Exemplo n.º 1
0
 /// <summary>
 /// Handle tax rate deleted event
 /// </summary>
 /// <param name="eventMessage">Event message</param>
 public void HandleEvent(EntityDeletedEvent <TaxRate> eventMessage)
 {
     //clear cache
     _cacheManager.RemoveByPattern(TAXRATE_PATTERN_KEY);
 }
Exemplo n.º 2
0
 public async Task HandleEventAsync(EntityDeletedEvent <Vendor> eventMessage)
 {
     await _staticCacheManager.RemoveAsync(NopModelCacheDefaults.VendorNavigationModelKey);
 }
Exemplo n.º 3
0
        public async Task HandleEventAsync(EntityDeletedEvent <Order> eventMessage)
        {
            await _staticCacheManager.RemoveByPrefixAsync(NopModelCacheDefaults.HomepageBestsellersIdsPrefixCacheKey);

            await _staticCacheManager.RemoveByPrefixAsync(NopModelCacheDefaults.ProductsAlsoPurchasedIdsPrefixCacheKey);
        }
        void IHandle <EntityDeletedEvent <IJsonCard> > .Handle(EntityDeletedEvent <IJsonCard> message)
        {
            var item = Items.FirstOrDefault(c => c.Id == message.Data.Id);

            Items.Remove(item);
        }
Exemplo n.º 5
0
 /// <summary>
 /// Handle the delete shopping cart item event
 /// </summary>
 /// <param name="eventMessage">The event message.</param>
 public void HandleEvent(EntityDeletedEvent <ShoppingCartItem> eventMessage)
 {
     //handle event
     _sendinBlueMarketingAutomationManager.HandleShoppingCartChangedEvent(eventMessage.Entity);
 }
Exemplo n.º 6
0
 //product reviews
 public void HandleEvent(EntityDeletedEvent <ProductReview> eventMessage)
 {
     _cacheManager.RemoveByPattern(string.Format(NopModelCacheDefaults.ProductReviewsPatternKeyById, eventMessage.Entity.ProductId));
 }
Exemplo n.º 7
0
 public void HandleEvent(EntityDeletedEvent <Category> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopCatalogDefaults.ProductCategoryIdsPatternCacheKey);
 }
Exemplo n.º 8
0
 public void HandleEvent(EntityDeletedEvent <RelatedProduct> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.ProductsRelatedIdsPatternKey);
 }
Exemplo n.º 9
0
 public void HandleEvent(EntityDeletedEvent <SpecificationAttributeOption> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.ProductSpecsPatternKey);
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.SpecsFilterPatternKey);
 }
Exemplo n.º 10
0
 public void HandleEvent(EntityDeletedEvent <ProductManufacturer> eventMessage)
 {
     _cacheManager.RemoveByPattern(string.Format(NopModelCacheDefaults.ProductManufacturersPatternKeyById, eventMessage.Entity.ProductId));
     _cacheManager.RemoveByPattern(string.Format(NopModelCacheDefaults.ManufacturerHasFeaturedProductsPatternKeyById, eventMessage.Entity.ManufacturerId));
 }
Exemplo n.º 11
0
 public void HandleEvent(EntityDeletedEvent <ProductTag> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.ProductTagPopularPatternKey);
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.ProductTagByProductPatternKey);
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.SitemapPatternKey);
 }
Exemplo n.º 12
0
 public void HandleEvent(EntityDeletedEvent <Manufacturer> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.ManufacturerNavigationPatternKey);
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.ProductManufacturersPatternKey);
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.SitemapPatternKey);
 }
Exemplo n.º 13
0
 public void HandleEvent(EntityDeletedEvent <Vendor> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.VendorNavigationPatternKey);
 }
Exemplo n.º 14
0
 public void HandleEvent(EntityDeletedEvent <Currency> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.AvailableCurrenciesPatternKey);
 }
Exemplo n.º 15
0
 public void HandleEvent(EntityDeletedEvent <TopicTemplate> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.TopicTemplatePatternKey);
 }
Exemplo n.º 16
0
 public void HandleEvent(EntityDeletedEvent <ProductSpecificationAttribute> eventMessage)
 {
     _cacheManager.RemoveByPattern(string.Format(NopModelCacheDefaults.ProductSpecsPatternKeyById, eventMessage.Entity.ProductId));
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.SpecsFilterPatternKey);
 }
Exemplo n.º 17
0
 public void HandleEvent(EntityDeletedEvent <CheckoutAttribute> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.CheckoutAttributesPatternKey);
 }
Exemplo n.º 18
0
 public void HandleEvent(EntityDeletedEvent <Order> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.HomepageBestsellersIdsPatternKey);
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.ProductsAlsoPurchasedIdsPatternKey);
 }
Exemplo n.º 19
0
 public void HandleEvent(EntityDeletedEvent <Order> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopCatalogDefaults.ProductPricePatternCacheKey);
 }
Exemplo n.º 20
0
 public void HandleEvent(EntityDeletedEvent <Poll> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.PollsPatternKey);
 }
Exemplo n.º 21
0
 public void HandleEvent(EntityDeletedEvent <Manufacturer> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopCatalogDefaults.ProductManufacturerIdsPatternCacheKey);
 }
Exemplo n.º 22
0
 public void HandleEvent(EntityDeletedEvent <BlogPost> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.BlogPatternKey);
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.SitemapPatternKey);
 }
Exemplo n.º 23
0
 /// <summary>
 /// Handle tax rate deleted event
 /// </summary>
 /// <param name="eventMessage">Event message</param>
 public async Task HandleEventAsync(EntityDeletedEvent <TaxRate> eventMessage)
 {
     //clear cache
     await _staticCacheManager.RemoveByPrefixAsync(TAXRATE_PATTERN_KEY);
 }
Exemplo n.º 24
0
 //News comments
 public void HandleEvent(EntityDeletedEvent <NewsComment> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.NewsCommentsPatternKey);
 }
Exemplo n.º 25
0
 public void HandleEvent(EntityDeletedEvent <Product> eventMessage)
 {
     _luceneService.DeleteLuceneIndexRecord(eventMessage.Entity.Id);
 }
Exemplo n.º 26
0
 public void HandleEvent(EntityDeletedEvent <StateProvince> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.StateProvincesPatternKey);
 }
Exemplo n.º 27
0
        public async Task HandleEventAsync(EntityDeletedEvent <Manufacturer> eventMessage)
        {
            await _staticCacheManager.RemoveByPrefixAsync(NopModelCacheDefaults.ManufacturerNavigationPrefixCacheKey);

            await _staticCacheManager.RemoveByPrefixAsync(NopModelCacheDefaults.SitemapPrefixCacheKey);
        }
Exemplo n.º 28
0
 public void HandleEvent(EntityDeletedEvent <ReturnRequestReason> eventMessage)
 {
     _cacheManager.RemoveByPattern(NopModelCacheDefaults.ReturnRequestReasonsPatternKey);
 }
Exemplo n.º 29
0
 public async Task HandleEventAsync(EntityDeletedEvent <Poll> eventMessage)
 {
     await _staticCacheManager.RemoveByPrefixAsync(NopModelCacheDefaults.PollsPrefixCacheKey);
 }
 public void HandleEvent(EntityDeletedEvent <Category> eventMessage)
 {
     _cacheManager.RemoveByPrefix(QNetModelCacheDefaults.CategoriesListPrefixCacheKey);
 }