U4-8551 - import NuCache code
This commit is contained in:
21
src/Umbraco.Web/PublishedCache/NuCache/ContentNodeKit.cs
Normal file
21
src/Umbraco.Web/PublishedCache/NuCache/ContentNodeKit.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user