Example #1
0
 public RssPlugin(IBitTorrentEngine torrentEngine, IDataRepository dataRepository, ITimerFactory timerFactory, IWebClient webClient)
 {
     _torrentEngine = torrentEngine;
     _dataRepository = dataRepository;
     _timer = timerFactory.CreateTimer();
     _webClient = webClient;
 }
Example #2
0
        public DefaultHost(IDataRepository data, IBitTorrentEngine torrentEngine, IMigrationRunner runner, IPluginEngine pluginEngine, IHttpServer httpServer)
        {
            _data = data;
            _torrentEngine = torrentEngine;
            _migratorRunner = runner;
            _pluginEngine = pluginEngine;
            _httpServer = httpServer;

            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
        }
Example #3
0
 public AutoAddPlugin(IKeyValueStore keyValueStore,
     IDataRepository dataRepository,
     IBitTorrentEngine bitTorrentEngine,
     IFileSystem fileSystem,
     ITimerFactory timerFactory)
 {
     _keyValueStore = keyValueStore;
     _dataRepository = dataRepository;
     _bitTorrentEngine = bitTorrentEngine;
     _fileSystem = fileSystem;
     _timerFactory = timerFactory;
 }
Example #4
0
 public GetPeers(IBitTorrentEngine torrentEngine)
 {
     this._torrentEngine = torrentEngine;
 }
Example #5
0
 public StopTorrent(IBitTorrentEngine torrentEngine)
 {
     _torrentEngine = torrentEngine;
 }
Example #6
0
 public GetTorrentFiles(IBitTorrentEngine torrentEngine)
 {
     _torrentEngine = torrentEngine;
 }
Example #7
0
 public AddUrl(IBitTorrentEngine torrentEngine)
 {
     _torrentEngine = torrentEngine;
 }
Example #8
0
 public SetProperties(IBitTorrentEngine torrentEngine)
 {
     _torrentEngine = torrentEngine;
 }
Example #9
0
 public AddFile(IBitTorrentEngine torrentEngine)
 {
     _torrentEngine = torrentEngine;
 }
Example #10
0
 public RemoveTorrent(IBitTorrentEngine torrentEngine)
 {
     _torrentEngine = torrentEngine;
 }
Example #11
0
 public PauseTorrent(IBitTorrentEngine torrentEngine)
 {
     _torrentEngine = torrentEngine;
 }