コード例 #1
0
        public void CloneExportJob(Guid id)
        {
            SchedulerManager.CloneJobById(id);

            ////ExportJob clone = null;
            //var ind = ((FluentRegistry)HttpContext.Application["FluentRegistry"]).ExportJobs.FindIndex(n => n.Id == id);
            //if (ind >= 0)
            //{
            //    ((FluentRegistry)HttpContext.Application["FluentRegistry"]).ExportJobs[ind].CloneJob();

            //    //clone = ((FluentRegistry)HttpContext.Application["FluentRegistry"]).ExportJobs.Copy(id);
            //    //((FluentRegistry)HttpContext.Application["FluentRegistry"]).ExportJobs.Add(clone);
            //}
            ////var fluentRegistry = (FluentRegistry)HttpContext.Application["FluentRegistry"];
            ////fluentRegistry?.CommitExportJobs(clone.Id);
        }