I have created a background worker that should run on 1st of every month. I can easily do this using hangfire cron jobs but I'm not sure, what is the effect of Timer.Period property has on this.
If I skip entering the timer property, I get exception.
If I fill Timer property, I don't want the code to execute on any other day than 1st of every month.
What is the best approach to achieve this?
I'm using something like below:
RecurringJob.AddOrUpdate<InvoiceBackgroundWorker>(job => job.Start(), Cron.MonthInterval(0));