Files
Umbraco-CMS/src/Umbraco.Web/PublishedCache/NuCache/ContentNodeKit.cs

22 lines
611 B
C#
Raw Normal View History

2016-05-27 14:26:28 +02:00
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);
}
}
}