public FlashSalePlanAppService( IFlashSalePlanRepository flashSalePlanRepository, IProductAppService productAppService, IDistributedCache <FlashSalePlanPreOrderCacheItem> tokenDistributedCache, IDistributedCache <FlashSalePlanCacheItem, Guid> planDistributedCache, IDistributedEventBus distributedEventBus, IFlashSaleResultRepository flashSaleResultRepository, IAbpDistributedLock distributedLock, IFlashSalePlanHasher flashSalePlanHasher, IFlashSaleInventoryManager flashSaleInventoryManager, IDistributedCache distributedCache, IOptionsMonitor <FlashSalesOptions> optionsMonitor) : base(flashSalePlanRepository) { FlashSalePlanRepository = flashSalePlanRepository; ProductAppService = productAppService; PreOrderDistributedCache = tokenDistributedCache; PlanDistributedCache = planDistributedCache; DistributedEventBus = distributedEventBus; FlashSaleResultRepository = flashSaleResultRepository; DistributedLock = distributedLock; FlashSalePlanHasher = flashSalePlanHasher; FlashSaleInventoryManager = flashSaleInventoryManager; DistributedCache = distributedCache; Options = optionsMonitor.CurrentValue; }
public CreateFlashSaleOrderFailedEventHandler( IFlashSaleInventoryManager flashSaleInventoryManager, IDistributedCache distributedCache, IFlashSalePlanRepository flashSalePlanRepository, IProductAppService productAppService, ILogger <CreateFlashSaleOrderFailedEventHandler> logger) { FlashSaleInventoryManager = flashSaleInventoryManager; DistributedCache = distributedCache; FlashSalePlanRepository = flashSalePlanRepository; ProductAppService = productAppService; Logger = logger; }