예제 #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
            );
 }
예제 #2
0
 public override int GetHashCode()
 {
     return(MaximumConnections +
            MaximumDownloadSpeed +
            MaximumUploadSpeed +
            MaximumHalfOpenConnections +
            ListenEndPoint?.GetHashCode() ?? 0 +
            AllowedEncryption.GetHashCode() +
            CacheDirectory.GetHashCode());
 }
예제 #3
0
 public override int GetHashCode()
 {
     return(GlobalMaxConnections +
            GlobalMaxDownloadSpeed +
            GlobalMaxHalfOpenConnections +
            GlobalMaxUploadSpeed +
            ListenPort.GetHashCode() +
            AllowedEncryption.GetHashCode() +
            SaveFolder.GetHashCode());
 }
예제 #4
0
 public override int GetHashCode()
 {
     return(MaximumConnections +
            MaximumDownloadSpeed +
            MaximumUploadSpeed +
            MaximumHalfOpenConnections +
            ListenPort.GetHashCode() +
            AllowedEncryption.GetHashCode() +
            SavePath.GetHashCode());
 }
예제 #5
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);
 }