public IEnumerator <IFileInfo> GetEnumerator() { var files = _pageContext.Return().ToList(); foreach (var item in files) { yield return(new DatabaseFileInfo(_pageContext, item.Location)); } }
public IEnumerator <IFileInfo> GetEnumerator() { var files = _pageContext.Return().ToList(); foreach (var item in files) { yield return(new ThemeFileInfo(_serviceProvider, item.Location)); } }
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; } }
public IEnumerable <Page> GetAllPages() { return(_pageContext.Return().ToList()); }