// Uncomment the method below to handle the event raised after a feature has been activated. public override void FeatureActivated(SPFeatureReceiverProperties properties) { var webApp = properties.Feature.Parent as SPWebApplication; var job = new TimerJob(webApp); job.Schedule = new SPHourlySchedule() { BeginMinute = 0, EndMinute = 59 }; job.Update(); var worker = new CleaupWorker(webApp); worker.Schedule = new SPMinuteSchedule() { BeginSecond = 0, EndSecond = 59, Interval = 1 }; worker.Update(); }