Exemplo n.º 1
0
        private void OutputCacheErrors(IEnumerable <CacheError> cacheErrors)
        {
            Console.Error.WriteLine("\nCache Errors detected: " + cacheErrors.Count());

            bool printedHeader = false;

            foreach (CacheError error in cacheErrors)
            {
                if (!printedHeader)
                {
                    m_outputDestination.WriteLine(CacheError.GetHeader());
                    printedHeader = true;
                }

                m_outputDestination.WriteLine(error.ToString());
            }
        }