Beispiel #1
0
 public JdlyController(
     IMemoryCache _memoryCache,
     IDistributedCache _distributedCache,
     VoteAppDbContext _dbContext,
     DbOperationMngr _dbOptMng,
     ILogger <VoteController> logger,
     SingletonAppDbContext _singletonDbContext
     )
 {
     _IDistributedCache = _distributedCache;
     dbOptMng           = _dbOptMng;
     dbContext          = _dbContext;
     memoryCache        = _memoryCache;
     _logger            = logger;
     singletonDbContext = _singletonDbContext;
 }
Beispiel #2
0
 //private IMemoryCache _cache;
 public VoteController(
     VoteAppDbContext _dbContext,
     OryxWebSocketPool _wsPool,
     GlobalVoteResultDic _globalVoteResultDic,
     DbOperationMngr _dbOptMng,
     IDistributedCache memoryCache,
     ILogger <VoteController> logger,
     SingletonAppDbContext _singletonDbContext,
     RabbitMQClient _rabbitMqClient
     )
 {
     dbOptMng            = _dbOptMng;
     dbContext           = _dbContext;
     wsPool              = _wsPool;
     globalVoteResultDic = _globalVoteResultDic;
     _cache              = memoryCache;
     _logger             = logger;
     singletonDbContext  = _singletonDbContext;
     rabbitMqClient      = _rabbitMqClient;
 }