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