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()); }
public static string Enqueue(this IBackgroundJobClient client, string name, Action <IAtomBuilder> buildAtom) { var builder = new AtomBuilder(name, JobStorage.Current, client, buildAtom); return(builder.Build()); }
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()); }
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()); }