public HomeController(VotingApplicationContext db, ICpuStressWorker cpuStressWorker, IVoteLogManager voteLogManager, ILogger log)
 {
     this.db = db;
     this.cpuStressWorker = cpuStressWorker;
     this.voteLogManager  = voteLogManager;
     this.log             = log;
 }
예제 #2
0
 public SurveysController(VotingApplicationContext db, IDateTimeProvider dateTimeProvider, IVoteLogManager voteLogManager, ILogger log)
 {
     this.db = db;
     this.dateTimeProvider = dateTimeProvider;
     this.voteLogManager   = voteLogManager;
     this.log = log;
 }
예제 #3
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public VoteLogAppService(
            IRepository <VoteLog, Guid> votelogRepository
            , IVoteLogManager votelogManager
            , IRepository <Exhibition, Guid> exhibitionRepository
            , IRepository <WeChatUser, Guid> wechatuserRepository
            , IRepository <ExhibitionShop, Guid> exhibitionshopRepository

            )
        {
            _votelogRepository        = votelogRepository;
            _votelogManager           = votelogManager;
            _exhibitionRepository     = exhibitionRepository;
            _wechatuserRepository     = wechatuserRepository;
            _exhibitionshopRepository = exhibitionshopRepository;
        }