public static Response Execute(RelativeUri url, Func<ISchedulerWrapper> getScheduler) { var scheduler = getScheduler(); var querystring = url.ParseQueryString(); var highlight = querystring["highlight"]; var group = querystring["group"]; var job = querystring["job"]; var jobKey = new JobKey(job, group); var triggers = GetTriggers(scheduler, jobKey); var m = new TriggersByJobModel(triggers, url.PathAndQuery, group, job, highlight); return new Response.XDocumentResponse(Helpers.XHTML(Views.Views.TriggersByJob(m))); }
public static void Execute(HttpContextBase context, Func<ISchedulerWrapper> getScheduler) { var scheduler = getScheduler(); var highlight = context.Request.QueryString["highlight"]; var group = context.Request.QueryString["group"]; var job = context.Request.QueryString["job"]; var jobKey = new JobKey(job, group); var triggers = GetTriggers(scheduler, jobKey); var thisUrl = context.Request.RawUrl; var m = new TriggersByJobModel(triggers, thisUrl, group, job, highlight); context.Response.Html(Helpers.XHTML(Views.Views.TriggersByJob(m))); }
public static void Execute(HttpContextBase context, Func<ISchedulerWrapper> getScheduler) { var scheduler = getScheduler(); var highlight = context.Request.QueryString["highlight"]; var group = context.Request.QueryString["group"]; var job = context.Request.QueryString["job"]; var jobKey = new JobKey(job, group); var triggers = GetTriggers(scheduler, jobKey); var thisUrl = context.Request.RawUrl; var m = new TriggersByJobModel(triggers, thisUrl, group, job, highlight); context.Response.Html(Helpers.XHTML(Views.Views.TriggersByJob(m))); }
public static Response Execute(RelativeUri url, Func <ISchedulerWrapper> getScheduler) { var scheduler = getScheduler(); var querystring = url.ParseQueryString(); var highlight = querystring["highlight"]; var group = querystring["group"]; var job = querystring["job"]; var jobKey = new JobKey(job, group); var triggers = GetTriggers(scheduler, jobKey); var m = new TriggersByJobModel(triggers, url.PathAndQuery, group, job, highlight); return(new Response.XDocumentResponse(Helpers.XHTML(Views.Views.TriggersByJob(m)))); }
public override IResult Execute(HttpContextBase context) { var group = context.Request.QueryString["group"]; var job = context.Request.QueryString["job"]; var thisUrl = context.Request.RawUrl; var triggers = scheduler.GetTriggersOfJob(job, group) .Select(t => { var state = scheduler.GetTriggerState(t.Name, t.Group); return new TriggerWithState(t, state); }); var highlight = context.Request.QueryString["highlight"]; var m = new TriggersByJobModel(triggers, thisUrl, group, job, highlight); return new XDocResult(Helpers.XHTML(Views.Views.TriggersByJob(m))); }
public static void Execute(HttpContextBase context, Func<IScheduler> getScheduler) { var scheduler = getScheduler(); var group = context.Request.QueryString["group"]; var job = context.Request.QueryString["job"]; var jobKey = new JobKey(job, group); var thisUrl = context.Request.RawUrl; var triggers = scheduler.GetTriggersOfJob(jobKey) .Select(t => { var state = scheduler.GetTriggerState(t.Key); return new TriggerWithState(t, state); }); var highlight = context.Request.QueryString["highlight"]; var m = new TriggersByJobModel(triggers, thisUrl, group, job, highlight); context.Response.Html(Helpers.XHTML(Views.Views.TriggersByJob(m))); }