Ejemplo n.º 1
0
        /// <summary>
        /// Agent that runs a scheduled task
        /// </summary>
        /// <param name="task">
        /// The invoked task
        /// </param>
        /// <remarks>
        /// This method is called when a periodic or resource intensive task is invoked
        /// </remarks>
        protected override void OnInvoke(ScheduledTask task)
        {
#if DEBUG
            ShellToast toast = new ShellToast()
            {
                Title   = "Start " + (DeviceStatus.ApplicationCurrentMemoryUsage / 1024).ToString() + " KB",
                Content = (DeviceStatus.ApplicationMemoryUsageLimit / 1024).ToString() + " KB"
            };
            toast.Show();
#endif

            TileUpdater updater = new TileUpdater();
            updater.OnUpdateCompleted += updater_OnUpdateCompleted;
            updater.UpdateAsync();
        }