Exemple #1
0
        public static string OnTriggerSet(this IBackgroundJobClient client, string triggerName, string name, Action <IAtomBuilder> buildAtom)
        {
            var triggerId = client.OnTriggerSet(triggerName);
            var builder   = new AtomBuilder(name, JobStorage.Current, client, buildAtom, new AwaitingState(triggerId));

            return(builder.Build());
        }
Exemple #2
0
        public static string Enqueue(this IBackgroundJobClient client, string name, Action <IAtomBuilder> buildAtom)
        {
            var builder = new AtomBuilder(name, JobStorage.Current, client, buildAtom);

            return(builder.Build());
        }
Exemple #3
0
        public static string ContinueJobWith(this IBackgroundJobClient client, string parentId, string name, Action <IAtomBuilder> buildAtom)
        {
            var builder = new AtomBuilder(name, JobStorage.Current, client, buildAtom, new AwaitingState(parentId));

            return(builder.Build());
        }
Exemple #4
0
        public static string Schedule(this IBackgroundJobClient client, string name, DateTime enqueueAt, Action <IAtomBuilder> buildAtom)
        {
            var builder = new AtomBuilder(name, JobStorage.Current, client, buildAtom, new ScheduledState(enqueueAt));

            return(builder.Build());
        }