public override void Schedule(ISchedule schedule) { schedule.Command(new Echo { VerbatimText = "Core Echo command." }) .EverySecond() .Before(x => Console.WriteLine("Before")) .After(x => Console.WriteLine("After")) .PingBefore("http://www.google.com") .PingAfter("http://www.google.com") .WriteOutputTo("AlwaysSucceedWrite.log") .AppendOutputTo("AlwaysSucceedAppend.log") .EmailOutputTo("*****@*****.**"); schedule.Command(new[] { new Echo { VerbatimText = "Chain Link 1" }, new Echo { VerbatimText = "Chain Link 2" }, }).EverySecond(); schedule.Command(new List <AbstractCommand> { new Echo { VerbatimText = "Chain Link A" }, new AlwaysFail(), new Echo { VerbatimText = "Chain Link C" }, }).EverySecond(); }