Page cover image

CRON Thread

An Expression Managed Thread is called every N seconds and is expected to exit the method call. It will repeat until the application is shut down or the thread is turned off.

PerigeeApplication.ApplicationNoInit("ThreadDemo", (c) =>
{
    c.AddCRON("Repeat", "*/1 * * * *", (ct, l) => {

        l.LogInformation("Starting again, every minute!");
        
    });
});

Last updated