I am using PeriodicTask and ofcourse it runs for every 30 mins.Can we call the code of MainPage.xaml.cs file from ScheduledAgent.cs when OnInvoke method is fired ? I want to resued the code written in one of the method of MainPage.xaml.cs.
If that is not possible can i connect to the internet everytime the OnInvoke() method is fired and fetch the data and display them as tiles/toast ? Any suggestions would be really appreciated.