Exemple #1
0
 public CachedContestContext(
     ContestWrapper contest,
     IMemoryCache cache,
     IServiceProvider serviceProvider,
     IOptions <CachedContestContextIntervalOptions> options) :
     base(contest, serviceProvider)
 {
     _cache   = cache;
     _options = options.Value;
 }
Exemple #2
0
 public ImmediateContestContext(ContestWrapper contest, IServiceProvider serviceProvider)
 {
     _contest  = contest;
     _services = serviceProvider;
     Logger    = serviceProvider.GetRequiredService <ILogger <IContestContext> >();
 }