Ejemplo n.º 1
0
 public static IJobConfiguration <T> RunEvery <T>(this IJobConfiguration <T> @this, TimeSpan interval)
     where T : IJob
 {
     return(@this.UseWaitSource(new IntervalWaitSource(interval)));
 }
Ejemplo n.º 2
0
 public static IJobConfiguration <T> RunWithSequence <T>(this IJobConfiguration <T> @this, DateTimeOffset startingFrom, Func <DateTimeOffset, DateTimeOffset> thenAt)
     where T : IJob
 {
     return(@this.UseWaitSource(new WaitUntilNextDateWaitSource(startingFrom, thenAt)));
 }