async Task DoCancel() { OperationError = null; IsBusy = true; try { if (Model?.Id != null) { if (pullRequestService.ConfirmCancelPendingReview()) { await session.CancelReview(); Close(); } } else { Close(); } } catch (Exception ex) { OperationError = ex.Message; } finally { IsBusy = false; } }
async Task DoCancel() { OperationError = null; IsBusy = true; try { if (Model?.Id != null) { if (pullRequestService.ConfirmCancelPendingReview()) { await session.CancelReview(); Close(); } } else { Close(); } await draftStore.DeleteDraft(GetDraftKey(), string.Empty).ConfigureAwait(true); } catch (Exception ex) { OperationError = ex.Message; } finally { IsBusy = false; } }
async Task DoCancel(object arg) { OperationError = null; IsBusy = true; try { if (Model?.Id != 0) { await session.CancelReview(); } Close(); } catch (Exception ex) { OperationError = ex.Message; } finally { IsBusy = false; } }