public TestJob(int sleep_time, PriorityHints hints, params Resource [] resources) : base(string.Format("{0} ( {1}, {2})", job_count++, hints, resources.Aggregate("", (a, b) => a += b.Id + " ")), hints, resources) { this.sleep_time = sleep_time; }
public Job(string title, PriorityHints hints, params Resource [] resources) { Title = title; PriorityHints = hints; SetResources(resources); }
public static bool Has <T> (this T job, PriorityHints hints) where T : Job { return((job.PriorityHints & hints) == hints); }
internal static IEnumerable <T> With <T> (this IEnumerable <T> source, PriorityHints hints) where T : Job { return(source.Where(j => j.Has(hints))); }
public Job (string title, PriorityHints hints, params Resource [] resources) { Title = title; PriorityHints = hints; SetResources (resources); }
public SimpleAsyncJob (string name, PriorityHints hints, params Resource [] resources) : base (name, hints, resources) { }
public TestJob (int sleep_time, PriorityHints hints, params Resource [] resources) : base (String.Format ("{0} ( {1}, {2})", job_count++, hints, resources.Aggregate ("", (a, b) => a += b.Id + " ")), hints, resources) { this.sleep_time = sleep_time; }
public SimpleAsyncJob(string name, PriorityHints hints, params Resource [] resources) : base(name, hints, resources) { }
public ThreadPoolJob (string name, PriorityHints hints, params Resource [] resources) : base (name, hints, resources) { }