Exemplo n.º 1
0
        public async void OnSuspending(SuspendingEventArgs e)
        {
            SuspendingDeferral deferral = e.SuspendingOperation.GetDeferral();

            PincodeManager.SavePinTimer();
            await SuspensionManager.SaveAsync();

            deferral.Complete();
        }
Exemplo n.º 2
0
 private void CoreVisibilityChanged(CoreWindow sender, VisibilityChangedEventArgs args)
 {
     if (args.Visible)
     {
         PincodeManager.TriggerBackgroundedPinTimer();
         TokenRefresher.Start();
     }
     else
     {
         PincodeManager.SavePinTimer();
         TokenRefresher.Stop();
     }
 }