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()); }