public async Task Handle(JudgingFinishedEvent notification, CancellationToken cancellationToken) { var ctx = await TryGetContest(notification, notification.ContestId); if (ctx == null || !notification.Judging.Active) { return; } await ctx.EmitEventAsync( new Judgement(notification.Judging, ctx.Contest.StartTime ?? DateTimeOffset.Now), "update"); }
public JudgingFinishedEvent2(JudgingFinishedEvent e, int cfscore) : base(e.Judging, e.ContestId, e.ProblemId, e.TeamId, e.SubmitTime) { CodeforcesScore = cfscore; }