コード例 #1
0
        public static object UpdateJob(string jobName, string jobJson)
        {
            Job job = JsonConvert.DeserializeObject <Job>(jobJson);

            Jobs.Initialize();
            Jobs.UpdateJob(jobName, job);
            return(0);
        }
コード例 #2
0
        public static object CreateJobJson(string jobJson)
        {
            Job job = JsonConvert.DeserializeObject <Job>(jobJson);

            Jobs.Initialize();
            Jobs.CreateJob(job);
            return(0);
        }
コード例 #3
0
 public static object DeleteJob(string jobName)
 {
     Jobs.Initialize();
     Jobs.DeleteJob(jobName);
     return(0);
 }