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