Advertisement
Guest User

Untitled

a guest
Aug 14th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. namespace TaskWithHangFire.Jobs
  2. {
  3. public class Recurring_Job
  4. {
  5. public Recurring_Job()
  6. {
  7. //Recurring job
  8. RecurringJob.AddOrUpdate(() => ProcessRecurringJob(), Cron.Hourly);
  9. }
  10. public void ProcessRecurringJob()
  11. {
  12. Console.WriteLine("I am a Recurring Job !!");
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement