Пример #1
0
        TestRig(string savePath, int piecelength, TestWriter writer, string[][] trackers, TorrentFile[] files, bool metadataMode)
        {
            _files       = files;
            _savePath    = savePath;
            _piecelength = piecelength;
            _tier        = trackers;
            MetadataMode = metadataMode;
            MetadataPath = "metadataSave.torrent";
            _listener    = new CustomListener();
            _engine      = new ClientEngine(new EngineSettings(), _listener, writer);
            Writer       = writer;

            RecreateManager();
        }
Пример #2
0
 internal static TestRig CreateMultiFile(TestWriter writer)
 {
     return(new TestRig(string.Empty, StandardPieceSize(), writer, StandardTrackers(), StandardMultiFile()));
 }
Пример #3
0
 TestRig(string savePath, int piecelength, TestWriter writer, string[][] trackers, TorrentFile[] files)
     : this(savePath, piecelength, writer, trackers, files, false)
 {
 }