示例#1
0
        public async Task Execute(IJobExecutionContext context)
        {
            JobDataMap data    = context.JobDetail.JobDataMap;
            int        EventId = data.GetInt("EventId");
            var        R       = await _evser.GetScoreBoared(EventId);

            var c = _mapper.Map <ScoreBoardDTO>(R);

            await PushToSignalR(EventId, c);
        }