Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andy Blyth 9 posts 120 karma points
    Sep 15, 2015 @ 15:06
    Andy Blyth
    0

    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

    Sep 15, 2015 @ 15:12

    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

  • Andy Blyth 9 posts 120 karma points
    Sep 15, 2015 @ 15:18
    Andy Blyth
    0

    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

    Sep 15, 2015 @ 15:48

    Don't think it's part of that API yet so modding the xml would be the way forward

Please Sign in or register to post replies

Write your reply to:

Draft