Пример #1
0
 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
 }
Пример #2
0
 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));
 }