コード例 #1
0
        public void CancelExecution(Guid id)
        {
            SchedulerManager.StopExecutionById(id, true, AppUserState.Name);

            //var ind = ((FluentRegistry)HttpContext.Application["FluentRegistry"]).ExportJobs.FindIndex(n => n.Id == id);
            //if (ind >= 0)
            //{
            //    ((FluentRegistry)HttpContext.Application["FluentRegistry"]).ExportJobs[ind].Stop(true, AppUserState.Name);

            //}
            ////var fluentRegistry = (FluentRegistry)HttpContext.Application["FluentRegistry"];
            ////fluentRegistry?.CommitExportJobs(id);
        }