How to call a regular method in RecurringJob.AddOrUpdate Or BackgroundJob.Schedule?

How can i call a regular method with hangfire?


like this:
RecurringJob.AddOrUpdate(sendSMS(),…);

sendSMS(){
.
.
}

Mmm?

BackgroundJob.Schedule(() => SendSMS(), TimeSpan.FromHours(1));