public void Run(IBackgroundTaskInstance taskInstance) { //Notifier notifier = new Notifier(); // It's important not to block UI threads. Since this is a background task, we do need // to block on the channel operations completing PushHelper.getInstance().RenewAll(false).AsTask().Wait(); }