示例#1
0
 public QBittorrent(IQBittorrentProxy proxy,
                    ITorrentFileInfoReader torrentFileInfoReader,
                    IHttpClient httpClient,
                    IConfigService configService,
                    IDiskProvider diskProvider,
                    IRemotePathMappingService remotePathMappingService,
                    Logger logger)
     : base(torrentFileInfoReader, httpClient, configService, diskProvider, remotePathMappingService, logger)
 {
     _proxy = proxy;
 }
        public QBittorrentProxySelector(QBittorrentProxyV1 proxyV1,
                                        QBittorrentProxyV2 proxyV2,
                                        ICacheManager cacheManager,
                                        Logger logger)
        {
            _proxyCache = cacheManager.GetCache <Tuple <IQBittorrentProxy, Version> >(GetType());
            _logger     = logger;

            _proxyV1 = proxyV1;
            _proxyV2 = proxyV2;
        }
        public QBittorrentProxySelector(QBittorrentProxyV1 proxyV1,
                                        QBittorrentProxyV2 proxyV2,
                                        IHttpClient httpClient,
                                        ICacheManager cacheManager,
                                        Logger logger)
        {
            _httpClient = httpClient;
            _proxyCache = cacheManager.GetCache <IQBittorrentProxy>(GetType());
            _logger     = logger;

            _proxyV1 = proxyV1;
            _proxyV2 = proxyV2;
        }