Example #1
0
 public int CopyTo(long offset, byte[] buffer, int bufferOffset, int count)
 {
     lock (lockToken)
     {
         return(page.CopyTo(offset, buffer, bufferOffset, count));
     }
 }
        public static Page FromIPage(IPage page)
        {
            var p = new Page();

            page.CopyTo(p);
            return(p);
        }
        public static PageEntity FromIPage(IPage page)
        {
            var p = new PageEntity();

            page.CopyTo(p);

            //p.Author = page.Author;
            //p.Categories = page.Categories;
            //p.Comments = page.Comments;
            //p.Content = page.Content;
            //p.ContentType = page.ContentType;
            //p.CorrelationKey = page.CorrelationKey;
            //p.DisableEditor = page.DisableEditor;
            //p.ExternalUrl = page.ExternalUrl;
            //p.Id = page.Id;
            //p.IsPublished = page.IsPublished;
            //p.LastModified = page.LastModified;
            //p.MetaDescription = page.MetaDescription;
            //p.PageOrder = page.PageOrder;
            //p.ParentId = page.ParentId;
            //p.ParentSlug = page.ParentSlug;
            //p.ProjectId = page.ProjectId;
            //p.PubDate = page.PubDate;
            //p.ShowCategories = page.ShowCategories;
            //p.ShowComments = page.ShowComments;
            //p.ShowHeading = page.ShowHeading;
            //p.ShowLastModified = page.ShowLastModified;
            //p.ShowPubDate = page.ShowPubDate;
            //p.Slug = page.Slug;
            //p.Title = page.Title;
            //p.ViewRoles = page.ViewRoles;
            //p.MenuOnly = page.MenuOnly;
            //p.ShowMenu = page.ShowMenu;
            //p.MenuFilters = page.MenuFilters;
            //p.Resources = page.Resources;

            return(p);
        }