예제 #1
0
        public static void PerformAsync(this Action job, DateTime runAt, int?priority = null)
        {
            var inner = new DelegateJob(() => { job(); return(true); });

            Linger.QueueForExecution(inner, priority ?? Linger.DefaultPriority, runAt);
        }
예제 #2
0
 public static void PerformAsync(this Perform perform, int?priority = null)
 {
     Linger.QueueForExecution(perform, priority ?? Linger.DefaultPriority);
 }
예제 #3
0
 public static void PerformAsync(this Func <bool> job, DateTime runAt, int?priority = null)
 {
     Linger.QueueForExecution(new DelegateJob(job), priority ?? Linger.DefaultPriority, runAt);
 }