示例#1
0
        /// <summary>
        /// 最近竞赛信息
        /// </summary>
        /// <returns>最近竞赛信息Json</returns>
        public async Task <ActionResult> RecentInfo()
        {
            String content = await RecentContestManager.GetAllRecentContestsJsonAsync();

            return(Content(content, "application/json"));
        }
示例#2
0
 /// <summary>
 /// 注册全部定时任务
 /// </summary>
 public static void RegisterAllScheduleTasks()
 {
     RecentContestManager.ScheduleGetAllRecentContestsJsonFromWeb();
 }