コード例 #1
0
 public void ChangeUnchoker(IUnchoker unchoker)
 {
     ClientEngine.MainLoop.QueueWait((MainLoopTask) delegate {
         this.chokeUnchoker = unchoker;
     });
 }
コード例 #2
0
        protected Mode(TorrentManager manager, DiskManager diskManager, ConnectionManager connectionManager, EngineSettings settings, IUnchoker unchoker = null)
        {
            Cancellation      = new CancellationTokenSource();
            ConnectionManager = connectionManager;
            DiskManager       = diskManager;
            Manager           = manager;
            Settings          = settings;

            Unchoker = unchoker ?? new ChokeUnchokeManager(new TorrentManagerUnchokeable(manager));
        }