Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace TaskWithHangFire.Jobs
- {
- public class Recurring_Job
- {
- public Recurring_Job()
- {
- //Recurring job
- RecurringJob.AddOrUpdate(() => ProcessRecurringJob(), Cron.Hourly);
- }
- public void ProcessRecurringJob()
- {
- Console.WriteLine("I am a Recurring Job !!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement