How can i call a regular method with hangfire?
like this:
RecurringJob.AddOrUpdate(sendSMS(),…);
sendSMS(){
.
.
}
How can i call a regular method with hangfire?
like this:
RecurringJob.AddOrUpdate(sendSMS(),…);
sendSMS(){
.
.
}
Mmm?
BackgroundJob.Schedule(() => SendSMS(), TimeSpan.FromHours(1));