Beispiel #1
0
        public RestrictionAttributesAcceptedV1Handler(IRegionStockAggregateStore regionStockAggregateStore, SkuVariantCacheManager skuVariantCacheManager, TelemetryClient telemetryClient)
        {
            if (regionStockAggregateStore == null)
            {
                throw new ArgumentNullException();
            }

            _telemetryClient           = telemetryClient;
            _regionStockAggregateStore = regionStockAggregateStore;
            _skuVariantCacheManager    = skuVariantCacheManager;
        }
Beispiel #2
0
 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;
 }
Beispiel #3
0
        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;
        }
Beispiel #4
0
 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)
 {
 }