This project is read-only.

How I can to change time interval in the background

Topics: Customizing Orchard, General
Nov 9, 2011 at 7:12 AM
Edited Nov 9, 2011 at 7:12 AM


I want to do some operations in the background.Sweep() method of IBackgroundTask will be called every 1 minutes.Can I to change this time interval?How to do it?


Nov 9, 2011 at 1:09 PM

Use the IScheduledTaskManager to create timed tasks instead.

Nov 12, 2011 at 4:26 AM

Can you give some example code?I couldn't find any appropriate example.I want to do it configurable.At any time should be able to start or stop.And when start it should be running by interval time.How to do it?


Nov 12, 2011 at 11:26 AM

Search Orchard source for IScheduledTaskManager ... there are examples of calling CreateTask.