public ContestController( IContestStore store, ITeamStore teams) { Store = store; Teams = teams; }
public ContestUpdateFactory( IContestStore contestStore, IConnectedClientStore connectedClients) { _contestStore = contestStore; _connectedClients = connectedClients; }
public async Task <IActionResult> Add(bool isgym, [FromServices] RoleManager <Role> roleManager, [FromServices] UserManager userManager, [FromServices] IContestStore store) { var c = await store.CreateAsync(new Contest { IsPublic = false, RegisterDefaultCategory = 0, ShortName = "DOMjudge", Name = "Round 1", Gym = isgym, }); await HttpContext.AuditAsync("added", $"{c.ContestId}"); int cid = c.ContestId; var roleName = $"JuryOfContest{cid}"; var result = await roleManager.CreateAsync(new Role(roleName) { ContestId = cid }); if (!result.Succeeded) { return(Json(result)); } var firstUser = await userManager.GetUserAsync(User); var roleAttach = await userManager.AddToRoleAsync(firstUser, roleName); if (!roleAttach.Succeeded) { return(Json(roleAttach)); } return(RedirectToAction("Home", "Jury", new { area = "Contest", cid })); }
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 ContestsController(IContestStore store) => Store = store;
public PullRopeHandler(IContestStore contestStore) { _contestStore = contestStore; }
public JoinContestHandler(IContestStore contestStore) { _contestStore = contestStore; }
public ConnectHook(IContestStore contestStore, ICharacterStateService characterStateService) { _contestStore = contestStore; _characterStateService = characterStateService; }
public StartContestHandler(IContestStore contestStore) { _contestStore = contestStore; }