Exemplo n.º 1
0
        protected override void OnResume()
        {
            BackgroundAggregatorService.StartBackgroundService();


            // Handle when your app resumes
        }
Exemplo n.º 2
0
        private static void StartBackgroundService()
        {
            //Monitoring notifications every minute
            BackgroundAggregatorService.Add(() => new PeriodicMonitoringService(1));

            //Start Background Service
            BackgroundAggregatorService.StartBackgroundService();
        }
Exemplo n.º 3
0
        private static void StartBackgroundService()
        {
            // Register Periodic Tasks
            BackgroundAggregatorService.Add(() => new PeriodicService());

            // Start the background service
            BackgroundAggregatorService.StopBackgroundService(); // Fix for error if already running. UWP Cannot create a file when that file already exists.
            BackgroundAggregatorService.StartBackgroundService();
        }
Exemplo n.º 4
0
        private static void StartBackgroundService()
        {
            //Rss gets updated every 3 minutes
            BackgroundAggregatorService.Add(() => new PeriodicBBCNewsRssFeed(3));
            //BackgroundAggregatorService.Add(() => new PeriodicCNNRssFeed(4));
            BackgroundAggregatorService.Add(() => new PeriodicWashingtonPostRssFeed(5));

            //you now running the periodic task in the background
            BackgroundAggregatorService.StartBackgroundService();
        }
Exemplo n.º 5
0
        protected override void OnSleep()
        {
            // Handle when your app sleeps
            //BackgroundAggregatorService.StopBackgroundService();

            //Register Periodic Tasks
            BackgroundAggregatorService.Add(() => new PeriodicWebCall(3));
            //BackgroundAggregatorService.Add(() => new PeriodicCall2(4));

            //Start the background service
            BackgroundAggregatorService.StartBackgroundService();
        }
Exemplo n.º 6
0
        protected override void OnResume()
        {
            try
            {
                // Handle when your app resumes
                //Register Periodic Tasks
                BackgroundAggregatorService.Add(() => new PeriodicCall(3));


                //Start the background service
                BackgroundAggregatorService.StartBackgroundService();
            }
            catch (Exception ex)
            {
            }
        }
Exemplo n.º 7
0
        public App()
        {
            BackgroundAggregatorService.Add(() => new PeriodicSevice(3));

            //Start the background service
            BackgroundAggregatorService.StartBackgroundService();

            InitializeComponent();

            MainViewModel.GetInstance().About  = new AboutViewModel();
            MainViewModel.GetInstance().Search = new SearchViewModel();

            DependencyService.Register <MockDataStore>();
            //MainPage = new MainPage();
            MainPage = new ShellPage();
        }
Exemplo n.º 8
0
 protected override void OnStart()
 {
     BackgroundAggregatorService.StopBackgroundService();
     BackgroundAggregatorService.Add(() => new BackgroundTaskJob(10)); //Task run every 10s
     BackgroundAggregatorService.StartBackgroundService();
 }
Exemplo n.º 9
0
        private static void StartBackgroundService()
        {
            BackgroundAggregatorService.Add(() => new WriterService());

            BackgroundAggregatorService.StartBackgroundService();
        }