Ejemplo n.º 1
0
 public bool Equals(EngineSettings other)
 {
     return(other != null &&
            AllowedEncryption.SequenceEqual(other.AllowedEncryption) &&
            AllowHaveSuppression == other.AllowHaveSuppression &&
            AllowLocalPeerDiscovery == other.AllowLocalPeerDiscovery &&
            AllowPortForwarding == other.AllowPortForwarding &&
            AutoSaveLoadDhtCache == other.AutoSaveLoadDhtCache &&
            AutoSaveLoadFastResume == other.AutoSaveLoadFastResume &&
            AutoSaveLoadMagnetLinkMetadata == other.AutoSaveLoadMagnetLinkMetadata &&
            CacheDirectory == other.CacheDirectory &&
            Equals(DhtEndPoint, other.DhtEndPoint) &&
            DiskCacheBytes == other.DiskCacheBytes &&
            FastResumeMode == other.FastResumeMode &&
            Equals(ListenEndPoint, other.ListenEndPoint) &&
            MaximumConnections == other.MaximumConnections &&
            MaximumDiskReadRate == other.MaximumDiskReadRate &&
            MaximumDiskWriteRate == other.MaximumDiskWriteRate &&
            MaximumDownloadSpeed == other.MaximumDownloadSpeed &&
            MaximumHalfOpenConnections == other.MaximumHalfOpenConnections &&
            MaximumOpenFiles == other.MaximumOpenFiles &&
            MaximumUploadSpeed == other.MaximumUploadSpeed &&
            ReportedAddress == other.ReportedAddress &&
            UsePartialFiles == other.UsePartialFiles
            );
 }
Ejemplo n.º 2
0
 public bool Equals(EngineSettings other)
 {
     return(other != null &&
            AllowedEncryption.SequenceEqual(other.AllowedEncryption) &&
            AllowHaveSuppression == other.AllowHaveSuppression &&
            AllowLocalPeerDiscovery == other.AllowLocalPeerDiscovery &&
            AllowPortForwarding == other.AllowPortForwarding &&
            DhtPort == other.DhtPort &&
            ListenPort == other.ListenPort &&
            MaximumConnections == other.MaximumConnections &&
            MaximumDiskReadRate == other.MaximumDiskReadRate &&
            MaximumDiskWriteRate == other.MaximumDiskWriteRate &&
            MaximumDownloadSpeed == other.MaximumDownloadSpeed &&
            MaximumHalfOpenConnections == other.MaximumHalfOpenConnections &&
            MaximumOpenFiles == other.MaximumOpenFiles &&
            MaximumUploadSpeed == other.MaximumUploadSpeed &&
            ReportedAddress == other.ReportedAddress &&
            SavePath == other.SavePath);
 }