Example #1
0
 public SportService(JudgesDbContext judgesDbContext, IRedisCache <Sport> sportCache)
 {
     _sportCache      = sportCache ?? throw new ArgumentNullException(nameof(sportCache));
     _judgesDbContext = judgesDbContext ?? throw new ArgumentNullException(nameof(judgesDbContext));
 }
Example #2
0
 public SportsRedisCache(IDistributedCache cache, JudgesDbContext judgesDbContext)
     : base(cache, judgesDbContext)
 {
 }
 public EntitiesRedisCache(IDistributedCache cache, JudgesDbContext judgesDbContext)
 {
     _cache           = cache;
     _judgesDbContext = judgesDbContext;
 }
 public EntitiesMemoryCache(IMemoryCache cache, JudgesDbContext judgesDbContext)
 {
     _cache           = cache;
     _judgesDbContext = judgesDbContext;
 }
Example #5
0
 public JudgeService(JudgesDbContext judgesDbContext, IEventService eventService)
 {
     _eventService    = eventService ?? throw new ArgumentNullException(nameof(eventService));
     _judgesDbContext = judgesDbContext ?? throw new ArgumentNullException(nameof(judgesDbContext));
 }
 public SportsMemoryCache(IMemoryCache cache, JudgesDbContext judgesDbContext)
     : base(cache, judgesDbContext)
 {
 }