//disable HiHealth. //After calling this function, HiHealth will cancel All your Records. public async void DisableHiHealth() { // create SettingController and disable HiHealth (cancel All your Records). // The results are displayed in the phone screen. var DisableTask = MySettingController.DisableHiHealthAsync(); try { await DisableTask; if (DisableTask.IsCompleted) { if (DisableTask.Exception == null) { Logger("DisableHiHealth is completed "); } else { PrintFailureMessage(DisableTask.Exception, "disableHiHealth"); } } } catch (System.Exception ex) { PrintFailureMessage(ex, "disableHiHealth"); } }