Ejemplo n.º 1
0
 public void ExecuteExportJob(string name)
 {
     //var eJobs = HttpContext.Application["FluentRegistry"] as FluentRegistry;
     // eJobs?.ExportJobs?.FirstOrDefault(n => n.Name == name)?.Execute();
     //((FluentRegistry)HttpContext.Application["FluentRegistry"]).ExportJobs.FirstOrDefault(n => n.Name == name)?.Execute(AppUserState.UserName);
     SchedulerManager.ExecuteJobByName(name, AppUserState.UserName);
     //SchedulerManager.Jobs.FirstOrDefault(n => n.Name == name)?.Execute(AppUserState.UserName);
 }