public void ChangeUnchoker(IUnchoker unchoker) { ClientEngine.MainLoop.QueueWait((MainLoopTask) delegate { this.chokeUnchoker = unchoker; }); }
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)); }