示例#1
0
 public void PauseTorrent(string hash)
 {
     using (Core.Sha1Hash sha1hash = new Core.Sha1Hash(hash))
         using (Core.TorrentHandle th = _torrentSession.find_torrent(sha1hash))
         {
             if (th != null && th.is_valid())
             {
                 th.pause();
             }
         }
 }