public override bool Equals(object other) { if (other is TargetChannelConfig config && PublishingInfraVersion == config.PublishingInfraVersion && Id == config.Id && string.Equals(AkaMSChannelName, config.AkaMSChannelName, StringComparison.OrdinalIgnoreCase) && TargetFeeds.Count == config.TargetFeeds.Count && TargetFeeds.Zip(config.TargetFeeds, (l, r) => l.Equals(r)).All(b => b) && IsInternal == config.IsInternal && Flatten == config.Flatten) { if (FilenamesToExclude is null) { return(config.FilenamesToExclude is null); } if (config.FilenamesToExclude is null) { return(false); } return(FilenamesToExclude.SequenceEqual(config.FilenamesToExclude)); } return(false); }
public override bool Equals(object obj) { if ( obj is TargetFeedConfig other && (ContentType == other.ContentType) && ((TargetURL is null && other.TargetURL is null) || TargetURL.Equals(other.TargetURL, StringComparison.OrdinalIgnoreCase)) && (Type == other.Type) && ((Token is null && other.Token is null) || Token.Equals(other.Token)) && LatestLinkShortUrlPrefixes.SequenceEqual(other.LatestLinkShortUrlPrefixes) && (AssetSelection == other.AssetSelection) && (Isolated == other.Isolated) && (Internal == other.Internal) && (AllowOverwrite == other.AllowOverwrite) && (Flatten == other.Flatten)) { if (FilenamesToExclude is null) { return(other.FilenamesToExclude is null); } if (other.FilenamesToExclude is null) { return(false); } return(FilenamesToExclude.SequenceEqual(other.FilenamesToExclude)); } return(false); }
public override bool Equals(object other) { if (other is TargetChannelConfig config && PublishingInfraVersion == config.PublishingInfraVersion && Id == config.Id && String.Equals(AkaMSChannelName, config.AkaMSChannelName, StringComparison.OrdinalIgnoreCase) && String.Equals(ShippingFeed, config.ShippingFeed, StringComparison.OrdinalIgnoreCase) && String.Equals(TransportFeed, config.TransportFeed, StringComparison.OrdinalIgnoreCase) && String.Equals(SymbolsFeed, config.SymbolsFeed, StringComparison.OrdinalIgnoreCase) && String.Equals(ChecksumsFeed, config.ChecksumsFeed, StringComparison.OrdinalIgnoreCase) && String.Equals(InstallersFeed, config.InstallersFeed, StringComparison.OrdinalIgnoreCase) && IsInternal == config.IsInternal && Flatten == config.Flatten) { if (FilenamesToExclude is null) { return(config.FilenamesToExclude is null); } if (config.FilenamesToExclude is null) { return(false); } return(FilenamesToExclude.SequenceEqual(config.FilenamesToExclude)); } return(false); }