private void CancelDownload(string id) { try { lock (_commandLockObject) { if (!string.IsNullOrWhiteSpace(id)) { _twitchService.Cancel(id); } } } catch (Exception ex) { _dialogService.ShowAndLogException(ex); } }