U4-8551 - import NuCache code

This commit is contained in:
Stephan
2016-05-27 14:26:28 +02:00
parent 6e84e085c1
commit f584404324
48 changed files with 7213 additions and 7 deletions

View File

@@ -0,0 +1,21 @@
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Web.PublishedCache.NuCache.DataSource;
namespace Umbraco.Web.PublishedCache.NuCache
{
// what's needed to actually build a content node
struct ContentNodeKit
{
public ContentNode Node;
public int ContentTypeId;
public ContentData DraftData;
public ContentData PublishedData;
public bool IsEmpty { get { return Node == null; } }
public void Build(PublishedContentType contentType)
{
Node.SetContentTypeAndData(contentType, DraftData, PublishedData);
}
}
}