public JudgingFinishedHandler( DbContextAccessor db, IContestStore contests, IProblemsetStore probs) { Context = db; Contests = contests; Problems = probs; }
public ContestFacade( DbContextAccessor context, IContestStore store1, IProblemsetStore store2, ITeamStore store3, ISubmissionStore store4) { Context = context; Contests = store1; Problemset = store2; Teams = store3; Submissions = store4; }
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)); }