private static IList<IRequestHandler> GetProcessors() { var handlers = new CrystalQuartzPanelApplication(SchedulerProvider, SchedulerDataProvider).Config.Handlers; var result = new List<IRequestHandler>(); result.Add(new FileRequestHandler(typeof(PagesHandler).Assembly, "CrystalQuartz.Web.Content.")); result.AddRange(handlers); return result; }
private static IList <IRequestHandler> GetProcessors() { var handlers = new CrystalQuartzPanelApplication(SchedulerProvider, SchedulerDataProvider).Config.Handlers; var result = new List <IRequestHandler>(); result.Add(new FileRequestHandler(typeof(PagesHandler).Assembly, "CrystalQuartz.Web.Content.")); result.AddRange(handlers); return(result); }
private static IList <IRequestHandler> GetProcessors() { var oldHandlers = new List <IRequestHandler> { new FileRequestProcessor(), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "scheduler-start"), new StartSchedulerFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("page", "job"), new JobFiller(ViewEngine, SchedulerDataProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "scheduler-stop"), new StopSchedulerFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "job-trigger"), new TriggerJobOperationFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "job-pause"), new PauseJobFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "job-resume"), new ResumeJobFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "trigger-pause"), new PauseTriggerFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "trigger-resume"), new ResumeTriggerFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "group-pause"), new PauseGroupFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "group-resume"), new ResumeGroupFiller(SchedulerProvider)), new DefaultRequestHandler( new CatchAllRequestMatcher(), new HomeFiller(ViewEngine, SchedulerDataProvider)) }; var newHandlers = new CrystalQuartzPanelApplication(SchedulerProvider, SchedulerDataProvider).Config.Handlers; var result = new List <IRequestHandler>(); result.Add(new FileRequestHandler(typeof(PagesHandler).Assembly, "CrystalQuartz.Web.Content.")); result.AddRange(newHandlers); result.AddRange(oldHandlers); return(result); }
static PagesHandler() { var options = new CrystalQuartzOptions { CustomCssUrl = Configuration.ConfigUtils.CustomCssUrl }; ISchedulerProvider schedulerProvider = Configuration.ConfigUtils.SchedulerProvider; Application application = new CrystalQuartzPanelApplication( schedulerProvider, options.ToRuntimeOptions(SchedulerEngineProviders.SchedulerEngineResolvers, FrameworkVersion.Value)); RunningApplication = application.Run(); }
static PagesHandler() { var options = new CrystalQuartzOptions { CustomCssUrl = Configuration.ConfigUtils.CustomCssUrl }; ISchedulerProvider schedulerProvider = Configuration.ConfigUtils.SchedulerProvider; ISchedulerDataProvider schedulerDataProvider = new DefaultSchedulerDataProvider(schedulerProvider); Application application = new CrystalQuartzPanelApplication( schedulerProvider, schedulerDataProvider, options); RunningApplication = application.Run(); }
private static IList <IRequestHandler> GetProcessors() { HttpContext ctx = HttpContext.Current; var result = new List <IRequestHandler>(); result.Add(new FileRequestHandler(typeof(PagesHandler).Assembly, "CrystalQuartz.Web.Content.")); if (ctx.User.Identity.IsAuthenticated) { var handlers = new CrystalQuartzPanelApplication(SchedulerProvider, SchedulerDataProvider).Config.Handlers; result.AddRange(handlers); } else { //δÊÚȨ } return(result); }
private static IList<IRequestHandler> GetProcessors() { var oldHandlers = new List<IRequestHandler> { new FileRequestProcessor(), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "scheduler-start"), new StartSchedulerFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("page", "job"), new JobFiller(ViewEngine, SchedulerDataProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "scheduler-stop"), new StopSchedulerFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "job-trigger"), new TriggerJobOperationFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "job-pause"), new PauseJobFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "job-resume"), new ResumeJobFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "trigger-pause"), new PauseTriggerFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "trigger-resume"), new ResumeTriggerFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "group-pause"), new PauseGroupFiller(SchedulerProvider)), new DefaultRequestHandler( new SingleParamRequestMatcher("command", "group-resume"), new ResumeGroupFiller(SchedulerProvider)), new DefaultRequestHandler( new CatchAllRequestMatcher(), new HomeFiller(ViewEngine, SchedulerDataProvider)) }; var newHandlers = new CrystalQuartzPanelApplication(SchedulerProvider, SchedulerDataProvider).Config.Handlers; var result = new List<IRequestHandler>(); result.Add(new FileRequestHandler(typeof(PagesHandler).Assembly, "CrystalQuartz.Web.Content.")); result.AddRange(newHandlers); result.AddRange(oldHandlers); return result; }