Exemple #1
0
 public AdminProblemService(IServiceProvider provider) : base(provider)
 {
     _options    = provider.GetRequiredService <IOptions <ApplicationConfig> >();
     _queue      = provider.GetRequiredService <BackgroundTaskQueue <JobRequestMessage> >();
     _statistics = provider.GetRequiredService <ProblemStatisticsService>();
 }
Exemple #2
0
 public ProblemService(IServiceProvider provider) : base(provider)
 {
     _statisticsService = provider.GetRequiredService <ProblemStatisticsService>();
 }
Exemple #3
0
 public AdminContestService(IServiceProvider provider) : base(provider)
 {
     _problemStatisticsService = provider.GetRequiredService <ProblemStatisticsService>();
 }
Exemple #4
0
 public AdminSubmissionService(IServiceProvider provider) : base(provider)
 {
     _queue      = provider.GetRequiredService <BackgroundTaskQueue <JobRequestMessage> >();
     _statistics = provider.GetRequiredService <ProblemStatisticsService>();
 }