コード例 #1
0
        /// <summary>
        /// Re-checks a torrent
        /// </summary>
        /// <param name="Torrent">The torrent to re-check</param>
        public void TorrentReCheck(Torrent Torrent)
        {
            if (_token == null)
            {
                return;
            }

            try
            {
                ServiceClient.RecheckTorrent(Torrent.Hash, _token);
                GetTorrentsAndLabels(true);
            }
            catch (System.ServiceModel.ProtocolException e)
            {
                // Token possibly expired, get new token.
                Trace.TraceError(e.Message + e.StackTrace);
                GetToken();
            }
        }
コード例 #2
0
 /// <summary>
 /// Re-checks a torrent
 /// </summary>
 /// <param name="Torrent">The torrent to re-check</param>
 public void TorrentReCheck(Torrent Torrent)
 {
     ServiceClient.RecheckTorrent(Torrent.Hash, _token);
     GetTorrentsAndLabels(true);
 }