public RestrictionAttributesAcceptedV1Handler(IRegionStockAggregateStore regionStockAggregateStore, SkuVariantCacheManager skuVariantCacheManager, TelemetryClient telemetryClient) { if (regionStockAggregateStore == null) { throw new ArgumentNullException(); } _telemetryClient = telemetryClient; _regionStockAggregateStore = regionStockAggregateStore; _skuVariantCacheManager = skuVariantCacheManager; }
protected MessageReceiver(int maximumConcurrency, string wasServiceBusConnectionString, string wasSubscriptionName, string wasTopicPath, TopicClient stockQuantityTopicClient, IRegionStockAggregateStore stockQuantityAggregateStore, SkuVariantCacheManager skuVariantCacheManager, TelemetryClient telemetryClient) { SkuVariantCacheManager = skuVariantCacheManager; MaximumConcurrency = maximumConcurrency; WasServiceBusConnectionString = wasServiceBusConnectionString; WasSubscriptionName = wasSubscriptionName; WasTopicPath = wasTopicPath; StockQuantityTopicClient = stockQuantityTopicClient; StockQuantityAggregateStore = stockQuantityAggregateStore; TelemetryClient = telemetryClient; }
public WarehouseAvailableStockChangedV1Handler(TopicClient stockQuantityTopicClient, IRegionStockAggregateStore regionStockAggregateStore, SkuVariantCacheManager skuVariantCacheManager, TelemetryClient telemetryClient) { if (stockQuantityTopicClient == null) { throw new ArgumentNullException(); } if (regionStockAggregateStore == null) { throw new ArgumentNullException(); } _telemetryClient = telemetryClient; _stockQuantityTopicClient = stockQuantityTopicClient; _skuVariantCacheManager = skuVariantCacheManager; _regionStockAggregateStore = regionStockAggregateStore; }
private void InitialiseSkuVariantMapCacheManager() { _skuVariantCacheManager = new SkuVariantCacheManager(); _skuVariantCacheManager.Initialise(_stockQuantityAggregateStore.GetSkuVariantMap(1000)); }
public RestrictionAttributesAcceptedReceiver(int maximumConcurrency, string wasServiceBusConnectionString, string wasSubscriptionName, string wasTopicPath, TopicClient stockQuantityTopicClient, IRegionStockAggregateStore stockQuantityAggregateStore, SkuVariantCacheManager skuVariantCacheManager, TelemetryClient telemetryClient) : base(maximumConcurrency, wasServiceBusConnectionString, wasSubscriptionName, wasTopicPath, stockQuantityTopicClient, stockQuantityAggregateStore, skuVariantCacheManager, telemetryClient) { }