protected bool Equals(ManifestContent other) { return(ExposureKeySets.SequenceEqual(other.ExposureKeySets) && RiskCalculationParameters == other.RiskCalculationParameters && AppConfig == other.AppConfig && ResourceBundle == other.ResourceBundle); }
private async Task <bool> WriteCandidate(ManifestContent candidate) { var existingContent = await _ContentDb.SafeGetLatestContent(ContentTypes.Manifest, _DateTimeProvider.Snapshot); if (existingContent == null) { return(true); } _Result.Existing = true; var existingManifest = ParseContent(existingContent.Content); return(!candidate.Equals(existingManifest)); }