Esempio n. 1
0
        /// <summary>
        /// Checks for any errors with the cas element
        /// and with each of the cas entries
        /// </summary>
        /// <param name="casElement">cas element of a strong fingerprint to check</param>
        /// <param name="casEntries">cas entries to check</param>
        /// <param name="errors">Where any cache errors found get stored</param>
        private async Task CheckCas(CasHash casElement, CasEntries casEntries, ConcurrentDictionary <CacheError, int> errors)
        {
            // Check CasElement
            await CheckCasHashAsync(casElement, errors);

            for (int i = 0; i < casEntries.Count(); i++)
            {
                // Check each CasHash
                CasHash casHash = casEntries[i];
                await CheckCasHashAsync(casHash, errors);
            }
        }