i Know how to create a background agent and how it invokes its onInvoke method.
now is there any way i can create a background thread in the onInvoke method and do a long running task for 1-2 day?
Please the question is not why would i need this,the question is weather it can be done or not.
i don't want the agent to be scheduled for every 30 min,rather on its first invoke,it should start a background thread and do work unless its stopped by app logic.
Thanks
You cannot have a Background Agent exceeding 10 min.
Periodic Agent: 25 seconds
Resource-intensive Agent: 10 minutes
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202942(v=vs.105).aspx#BKMK_ConstraintsforPeriodicAgents