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