/// <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 async override void OnInvoke(ScheduledTask task)
        {
            //TODO: Add code to perform your task in background
            await LockScreenHelper.HelloWP();

            ScheduledActionService.LaunchForTest(task.Name, TimeSpan.FromSeconds(30));
            NotifyComplete();
        }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     LockScreenHelper.HelloWP();
 }