SHARE
TWEET

Untitled

a guest Aug 14th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top