Esempio n. 1
0
        /// <summary>
        /// Force starts a torrent
        /// </summary>
        /// <param name="Torrent">The torrent to force start</param>
        public void TorrentForceStart(Torrent Torrent)
        {
            if (_token == null)
            {
                return;
            }

            try
            {
                ServiceClient.ForceStartTorrent(Torrent.Hash, _token);
                GetTorrentsAndLabels(true);
            }
            catch (System.ServiceModel.ProtocolException e)
            {
                // Token possibly expired, get new token.
                Trace.TraceError(e.Message + e.StackTrace);
                GetToken();
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Force starts a torrent
 /// </summary>
 /// <param name="Torrent">The torrent to force start</param>
 public void TorrentForceStart(Torrent Torrent)
 {
     ServiceClient.ForceStartTorrent(Torrent.Hash, _token);
     GetTorrentsAndLabels(true);
 }