public async Task <List <TorrentFileInfo> > GetTorrentFilesAsync(TorrentInfo torrent, CancellationToken cancellationToken) { try { var result = await client.GetTorrentFilesAsync(torrent, cancellationToken).ConfigureAwait(false); UpdateStatus(true); return(result); } catch (Exception ex) when(!(ex is TaskCanceledException)) { UpdateStatus(false); throw; } }