Bloom.Book.Book.BuildPageCache C# (CSharp) Method

BuildPageCache() private method

private BuildPageCache ( ) : void
return void
        private void BuildPageCache()
        {
            _pagesCache = new List<IPage>();

            foreach (XmlElement pageNode in OurHtmlDom.SafeSelectNodes("//div[contains(@class,'bloom-page')]"))
            {
                //review: we want to show titles for template books, numbers for other books.
                //this here requires that titles be removed when the page is inserted, kind of a hack.
                string captionI18nId;
                var caption = GetPageLabelFromDiv(pageNode, out captionI18nId);
                if (String.IsNullOrEmpty(caption))
                {
                    caption = "";
                        //we aren't keeping these up to date yet as thing move around, so.... (pageNumber + 1).ToString();
                }
                _pagesCache.Add(CreatePageDecriptor(pageNode, caption, captionI18nId));
            }
        }
Book