Esempio n. 1
0
 protected bool Equals(ManifestContent other)
 {
     return(ExposureKeySets.SequenceEqual(other.ExposureKeySets) &&
            RiskCalculationParameters == other.RiskCalculationParameters &&
            AppConfig == other.AppConfig &&
            ResourceBundle == other.ResourceBundle);
 }
Esempio n. 2
0
        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));
        }