How to test timetrigger in background tasks? RRS feed

  • Question

  • Hello guys.

    How can one test the use of a time trigger for a background task? I mean, we can't set it to less than 15 minutes and that means that we'll have to wait at least 15 minutes for seeing anything. is there any other way to reduce this waiting time?


    Luis Abreu

    Sunday, April 29, 2012 8:19 PM

All replies

  • What I do is first, test the functionality of the background task by using the time zone change trigger.  Then I switch the trigger to a time trigger and...yes, wait 15 - 30 minutes.
    Sunday, April 29, 2012 10:13 PM
  • Thanks.

    I've been doing that, but that doesn't really guarantees that I haven't missed anything, right? oh well...

    Luis Abreu

    Sunday, April 29, 2012 10:38 PM
  • In Visual Studio 2012, if you set it to show the 'Debug Location' toolbar you will see a Suspend command when debugging.  If you pull that down you can see the registered background tasks.  Clicking on one will trigger it's run method.


    Justin Bartels

    Thursday, October 18, 2012 5:28 PM