示例#1
0
        public IEnumerator <IFileInfo> GetEnumerator()
        {
            var files = _pageContext.Return().ToList();

            foreach (var item in files)
            {
                yield return(new DatabaseFileInfo(_pageContext, item.Location));
            }
        }
示例#2
0
        public IEnumerator <IFileInfo> GetEnumerator()
        {
            var files = _pageContext.Return().ToList();

            foreach (var item in files)
            {
                yield return(new ThemeFileInfo(_serviceProvider, item.Location));
            }
        }
示例#3
0
        private void GetView(string path)
        {
            var view = _pageContext.Return().FirstOrDefault(x => x.Location == path);

            if (view != null)
            {
                Exists       = true;
                _content     = Encoding.UTF8.GetBytes(view.Content);
                LastModified = view.LastModified;
            }
        }
示例#4
0
 public IEnumerable <Page> GetAllPages()
 {
     return(_pageContext.Return().ToList());
 }