private void RetryDownload(string id) { try { lock (_commandLockObject) { if (!string.IsNullOrWhiteSpace(id)) { var download = FailedDownloads.Where(q => q.Id == id).FirstOrDefault(); if (download != null) { _twitchService.Enqueue(download.DownloadParams, true, id); _persistenceService.DeleteFailedRecord(download.Id); _persistenceService.FailedDownloads.Remove(download); } } } } catch (Exception ex) { _dialogService.ShowAndLogException(ex); } }