public static void CreateTimerJob(SPSite site) { var timerJob = new WysylkaWiadomosciTJ(site); //timerJob.Schedule = new SPMinuteSchedule //{ // BeginSecond = 0, // EndSecond = 0, // Interval = 15 //}; timerJob.Schedule = new SPHourlySchedule { BeginMinute = 0, EndMinute = 5, }; timerJob.Update(); }
public static void CreateTimerJob(SPSite site) { var timerJob = new WysylkaWiadomosciTJ(site); //timerJob.Schedule = new SPMinuteSchedule //{ // BeginSecond = 0, // EndSecond = 0, // Interval = 15 //}; timerJob.Schedule = new SPHourlySchedule { BeginMinute = 0, EndMinute = 5, }; timerJob.Update(); }