public MainPage() { this.InitializeComponent(); LoadApplication(new App5.App()); BackgroundTasksFactory.RegisterBackgroundTask("MyBackgroundTask", new SystemTrigger(SystemTriggerType.InternetAvailable, true), null); }
public MainPage() { this.InitializeComponent(); BackgroundTasksFactory.RegisterBackgroundTask("BackgroundTasksRuntimeComponent.BackgroundTaskSample", "MyBackgroundTask", new SystemTrigger(SystemTriggerType.InternetAvailable, false), null); }