Ejemplo n.º 1
0
 public JudgingFinishedHandler(
     DbContextAccessor db,
     IContestStore contests,
     IProblemsetStore probs)
 {
     Context  = db;
     Contests = contests;
     Problems = probs;
 }
Ejemplo n.º 2
0
 public ContestFacade(
     DbContextAccessor context,
     IContestStore store1,
     IProblemsetStore store2,
     ITeamStore store3,
     ISubmissionStore store4)
 {
     Context     = context;
     Contests    = store1;
     Problemset  = store2;
     Teams       = store3;
     Submissions = store4;
 }
Ejemplo n.º 3
0
        public async Task <IActionResult> Overview(int pid,
                                                   [FromServices] ITestcaseStore tcs,
                                                   [FromServices] IArchiveStore archs,
                                                   [FromServices] IProblemsetStore cps)
        {
            ViewBag.TestcaseCount = await tcs.CountAsync(Problem);

            ViewBag.Archive = await archs.FindInternalAsync(pid);

            ViewBag.Contests = await cps.ListByProblemAsync(pid);

            ViewBag.Users = await Problems.ListPermittedUserAsync(pid);

            return(View(Problem));
        }