/// <summary> /// Initializes a new instance of the <see cref="T:PageContent"/> class. /// </summary> /// <param name="pageFullName">The PageInfo object.</param> /// <param name="provider">The Pages Storage Provider that manages this Page.</param> /// <param name="creationDateTime">The Page creation Date/Time.</param> /// <param name="title">The Title.</param> /// <param name="user">The User that last modified the Page.</param> /// <param name="lastModified">The last modification Date and Time.</param> /// <param name="comment">The Comment of the editor, about this revision.</param> /// <param name="content">The <b>unparsed</b> Content.</param> /// <param name="keywords">The keywords, usually used for SEO, or <c>null</c>.</param> /// <param name="description">The description, usually used for SEO, or <c>null</c>.</param> public PageContent(string pageFullName, IPagesStorageProviderV60 provider, DateTime creationDateTime, string title, string user, DateTime lastModified, string comment, string content, string[] keywords, string description) { this.nspace = NameTools.GetNamespace(pageFullName); this.name = NameTools.GetLocalName(pageFullName); this.provider = provider; this.creationDateTime = creationDateTime; this.title = title; this.user = user; this.lastModified = lastModified; this.content = content; this.comment = comment; this.keywords = keywords != null ? keywords : new string[0]; this.description = description; }
/// <summary /> public IEnumerable <PageInfo> ApplyOn(IEnumerable <PageInfo> list) { list = list.Where(p => NameTools.AreNamespaceEquals(NameTools.GetNamespace(p.FullName), Namespace)); if (!string.IsNullOrEmpty(Name)) { list = list.Where(p => MatchPattern(NameTools.GetLocalName(p.FullName), Name)); } if (PageIndex > -1 && PageSize > -1) { list = list .Skip(PageIndex * PageSize) .Take(PageSize); } return(list); }