public static void Main(string[] args) { var result = BootStrapper.InitService(args, scheduler => { // schedule your job here scheduler.ScheduleJob("scheduled job", "* * * * *", EmbededJobs.Callback); scheduler.ScheduleJob("scheduled job", Dsl.frequency(Dsl.CronExpr.Daily), EmbededJobs.Callback); }); result.Match( (state, msgs) => { Console.WriteLine(state); }, (msgs) => { msgs.ToList().ForEach(Console.WriteLine); }); }