Ejemplo n.º 1
0
 private void download(BinTorrent bt)
 {
     var info = new BinRootInfo(binRepository.Root, bt);
     var m = torrentEnvironment.PrepareManager(info);
     m.TorrentStateChanged += onTorrentStateChanged;
     m.Start();
 }
Ejemplo n.º 2
0
 internal TorrentManager PrepareManager(BinRootInfo bt)
 {
     //TODO: I suppose managers need to go once the torrent is finished, unless
     // the user wants to seed what he downloaded. We will see...
     var m = new TorrentManager(bt.Torrent, bt.FullPath, new TorrentSettings() { }, "");
     engine.Register(m);
     return m;
 }