コード例 #1
0
 public void DeleteExportJob(Guid id)
 {
     SchedulerManager.DeleteJobById(id);
     //var ind = ((FluentRegistry)HttpContext.Application["FluentRegistry"]).ExportJobs.FindIndex(n => n.Id == id);
     //if (ind >= 0)
     //{
     //    ((FluentRegistry)HttpContext.Application["FluentRegistry"]).ExportJobs[ind].DeleteJob();
     //    //((FluentRegistry)HttpContext.Application["FluentRegistry"]).ExportJobs[ind].Stop(true);
     //    //((FluentRegistry)HttpContext.Application["FluentRegistry"]).ExportJobs.RemoveAt(ind);
     //}
     //var fluentRegistry = (FluentRegistry)HttpContext.Application["FluentRegistry"];
     //fluentRegistry?.CommitExportJobs(id);
 }