Пример #1
0
 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;
 }
Пример #2
0
 public CreateFlashSaleOrderCompleteEventHandler(IFlashSaleResultRepository flashSaleResultRepository, IGuidGenerator guidGenerator)
 {
     FlashSaleResultRepository = flashSaleResultRepository;
     GuidGenerator             = guidGenerator;
 }
Пример #3
0
 public FlashSaleResultAppService(IFlashSaleResultRepository flashSaleResultRepository) : base(flashSaleResultRepository)
 {
 }