public int EnqueueProductUpdateRequestArray(string primaryAction, string secondaryAction, ProductUpdateRequestItem[] queryItem) { Log.ForCurrent.DebugFormat("Enqueueing ProductUpdateRequestArray. Primary action: {0}. Secondary action: {1}", primaryAction, secondaryAction); var messageId = new QueueOf_ProductUpdateRequestArray_ProductUpdateResponseClient().EnqueueMessage(primaryAction, secondaryAction, queryItem); LogRequest(messageId, primaryAction, secondaryAction, queryItem); return messageId; }
public void PublishPriceUpdate(string marketKey, ArticleForPriceAndStockUpdate articleWithPriceUpdates) { if (articleWithPriceUpdates == null) return; var productUpdates = new ProductUpdateRequestItem { SKU = articleWithPriceUpdates.PimSku, MarketName = marketKey, Price = articleWithPriceUpdates.Price }; var messageId = _productUpdateEnqueuer.EnqueueProductUpdateRequest(PrimaryAction.UpdateProductBySku, SecondaryAction.PriceAndStock, productUpdates); _productUpdateDequeuer.DequeueProductUpdateResponse(messageId); }
public void PublishPriceUpdate(string marketKey, ArticleForPriceAndStockUpdate articleWithPriceUpdates) { if (articleWithPriceUpdates == null) { return; } var productUpdates = new ProductUpdateRequestItem { SKU = articleWithPriceUpdates.PimSku, MarketName = marketKey, Price = articleWithPriceUpdates.Price }; var messageId = _productUpdateEnqueuer.EnqueueProductUpdateRequest(PrimaryAction.UpdateProductBySku, SecondaryAction.PriceAndStock, productUpdates); _productUpdateDequeuer.DequeueProductUpdateResponse(messageId); }
public int EnqueueProductUpdateRequest(string primaryAction, string secondaryAction, ProductUpdateRequestItem queryItem) { Log.ForCurrent.DebugFormat("Enqueueing ProductUpdateRequest. Primary action: {0}. Secondary action: {1}", primaryAction, secondaryAction); var messageId = new QueueOf_ProductUpdateRequest_ProductUpdateResponseClient().EnqueueMessage(primaryAction, secondaryAction, queryItem); LogRequest(messageId, primaryAction, secondaryAction, queryItem); return(messageId); }