I am trying to develop a package which has a settings page in which the user can enable/disable a scheduled task, I am trying to find a way to add and remove the scheduled tasks programatically, but I can't seem to find anyone who has done this before...
Well since scheduledTasks are just defined in the umbracoSettings.config as xml elements I think you'll just need to make some ui that adds/removes xml elements from that file
Create Scheduled Tasks Programatically
Hi,
I am trying to develop a package which has a settings page in which the user can enable/disable a scheduled task, I am trying to find a way to add and remove the scheduled tasks programatically, but I can't seem to find anyone who has done this before...
Is it even possible?
Thanks
Andy
Comment author was deleted
Well since scheduledTasks are just defined in the umbracoSettings.config as xml elements I think you'll just need to make some ui that adds/removes xml elements from that file
I thought as much, I was hoping there may have been an easier way of doing it... possibly something in the ApplicationContext.Services.
Comment author was deleted
Don't think it's part of that API yet so modding the xml would be the way forward
is working on a reply...