示例#1
0
        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");
        }
示例#2
0
 public JudgingFinishedEvent2(JudgingFinishedEvent e, int cfscore) :
     base(e.Judging, e.ContestId, e.ProblemId, e.TeamId, e.SubmitTime)
 {
     CodeforcesScore = cfscore;
 }