Skip to content

Startup Configuration

Furkan Güngör edited this page Jun 13, 2021 · 1 revision

Usage

For the cron job you created, you must configure it in Startup.cs.

Do not worry. This configuration is pretty simple.

services.ApplyResulation<ConsoleCronJob>(options =>
{
     options.CronExpression = "* * * * *";
     options.TimeZoneInfo = TimeZoneInfo.Local;
});

Process completed. Now, your cron job will run when the cron expression value you specified comes.

Clone this wiki locally