Skip to content

Instantly share code, notes, and snippets.

@pinscript
Created August 11, 2011 20:08
Show Gist options
  • Save pinscript/1140612 to your computer and use it in GitHub Desktop.
Save pinscript/1140612 to your computer and use it in GitHub Desktop.
Scheduled tasks spike
public void Configure(Context ctx) {
// Single tasks
ctx.Run(() => Tasks.First()).Every.Midnight;
ctx.Run(() => Tasks.Second()).Every.Day(8,0));
// Multiple tasks
ctx.Run(() => {
Tasks.Third();
Tasks.Fourth();
}).Every.Day(8,0);
// Triggers:
..Every.Hour(20/*Minute*/);
..Every.Minute(10/*Second*/);
..Every.Second();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment