コード例 #1
0
 /// <summary>
 /// 添加一个定时任务,仅仅不存在时会添加
 /// </summary>
 /// <param name="fapJob"></param>
 public async Task AddJob(FapJob fapJob)
 {
     var     jobManager = new JobManager(_serviceProvider);
     JobInfo job        = jobManager.GetJobInfo(fapJob);
     await SchedulerManager.Instance.AddScheduleJob(job);
 }
コード例 #2
0
        public string JobGroupOperation(string operation, string id, string parent, string text)
        {
            var jobManager = new JobManager(_serviceProvider);

            return(jobManager.JobGroupOperation(operation, id, parent, text));
        }