internal EngineSettings( IList <EncryptionType> allowedEncryption, bool allowHaveSuppression, bool allowLocalPeerDiscovery, bool allowPortForwarding, bool autoSaveLoadDhtCache, bool autoSaveLoadFastResume, bool autoSaveLoadMagnetLinkMetadata, string cacheDirectory, TimeSpan connectionTimeout, IPEndPoint dhtEndPoint, int diskCacheBytes, FastResumeMode fastResumeMode, IPEndPoint listenEndPoint, int maximumConnections, int maximumDiskReadRate, int maximumDiskWriteRate, int maximumDownloadSpeed, int maximumHalfOpenConnections, int maximumOpenFiles, int maximumUploadSpeed, IPEndPoint reportedAddress, bool usePartialFiles) { // Make sure this is immutable now AllowedEncryption = EncryptionTypes.MakeReadOnly(allowedEncryption); AllowHaveSuppression = allowHaveSuppression; AllowLocalPeerDiscovery = allowLocalPeerDiscovery; AllowPortForwarding = allowPortForwarding; AutoSaveLoadDhtCache = autoSaveLoadDhtCache; AutoSaveLoadFastResume = autoSaveLoadFastResume; AutoSaveLoadMagnetLinkMetadata = autoSaveLoadMagnetLinkMetadata; DhtEndPoint = dhtEndPoint; DiskCacheBytes = diskCacheBytes; CacheDirectory = cacheDirectory; ConnectionTimeout = connectionTimeout; FastResumeMode = fastResumeMode; ListenEndPoint = listenEndPoint; MaximumConnections = maximumConnections; MaximumDiskReadRate = maximumDiskReadRate; MaximumDiskWriteRate = maximumDiskWriteRate; MaximumDownloadSpeed = maximumDownloadSpeed; MaximumHalfOpenConnections = maximumHalfOpenConnections; MaximumOpenFiles = maximumOpenFiles; MaximumUploadSpeed = maximumUploadSpeed; ReportedAddress = reportedAddress; UsePartialFiles = usePartialFiles; }
internal EngineSettings(IList <EncryptionType> allowedEncryption, bool allowHaveSuppression, bool allowLocalPeerDiscovery, bool allowPortForwarding, TimeSpan connectionTimeout, int dhtPort, int listenPort, int maximumConnections, int maximumDiskReadRate, int maximumDiskWriteRate, int maximumDownloadSpeed, int maximumHalfOpenConnections, int maximumOpenFiles, int maximumUploadSpeed, IPEndPoint reportedAddress, string savePath) { // Make sure this is immutable now AllowedEncryption = EncryptionTypes.MakeReadOnly(allowedEncryption); AllowHaveSuppression = allowHaveSuppression; AllowLocalPeerDiscovery = allowLocalPeerDiscovery; AllowPortForwarding = allowPortForwarding; DhtPort = dhtPort; ConnectionTimeout = connectionTimeout; ListenPort = listenPort; MaximumConnections = maximumConnections; MaximumDiskReadRate = maximumDiskReadRate; MaximumDiskWriteRate = maximumDiskWriteRate; MaximumDownloadSpeed = maximumDownloadSpeed; MaximumHalfOpenConnections = maximumHalfOpenConnections; MaximumOpenFiles = maximumOpenFiles; MaximumUploadSpeed = maximumUploadSpeed; ReportedAddress = reportedAddress; SavePath = savePath; }