static void Main(string[] args) { PublishTest publishTest = new PublishTest(); // publishTest.RunEachPush(); // publishTest.RunOncePush(); // publishTest.RunDelayTimePush(); TimerJob.SetAction(() => { Console.WriteLine("hha" + DateTime.Now); }); TimerJob.Start(); Console.ReadLine(); }