コード例 #1
0
        public IEnumerable <ISection> GetSections(HttpRequestBase request)
        {
            var sections = _sections.ToList();

            sections.ForEach(s => s.IsSecureConnection = request.ConnectionIsSecureOrTerminatedSecure());

            return(sections);
        }
コード例 #2
0
        public IEnumerable <IPage> GetPagesBySectionName(HttpRequestBase request, string sectionName)
        {
            if (!_pagesBySectionDict.ContainsKey(sectionName))
            {
                return(new List <IPage>());
            }

            var pages = _pagesBySectionDict[sectionName].ToList();

            pages.ForEach(p => p.IsSecureConnection = request.ConnectionIsSecureOrTerminatedSecure());

            return(pages);
        }