public LotteryService( IExtendedCacheClient cache, ISchedulerService scheduler, ITransactionService transactions, LotteryEventHandler eventHandler) { this.transactions = transactions; this.scheduler = scheduler.CreateWorker( lotterySchedulerKey, eventHandler.HandleLotteryAsync); this.entrySet = cache.CreateHashSet<LotteryEntry>(eventHandler.LotteryObjectsKey); }