public Task Handle(DeleteTorrent notification, CancellationToken cancellationToken) { m_logger.LogInformation("Deleting torrent {torrent}", notification.Torrent.Name); return(API.DeleteTorrents(new List <string>() { notification.Torrent.Hash })); // TODO do NOT delete permanently }
public void ResetCommands() { PauseDownload.OnCanExecuteChanged(); ResumeDownload.OnCanExecuteChanged(); DeleteTorrent.OnCanExecuteChanged(); }
public Task Handle(DeleteTorrent notification, CancellationToken cancellationToken) { m_logger.LogInformation("Deleting torrent {torrent}", notification.Torrent.Name); return(m_client.DeleteTorrentAsync(notification.Torrent.Hash)); }