public void CancelAndWait() { if (_backgroundBuild != null) { _backgroundBuild.cancelAndWait(); } }
void prepareForVSBuild() { // immediately reflect in the UI that we are not wanted anymore! _ui.setBuildStatus(BuildStatus.Indeterminate); _buildAgain = false; _backgroundBuild.cancelAndWait(); }