Add GetById(Udi) to published caches
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Xml.XPath;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Models.PublishedContent;
|
||||
using Umbraco.Core.Xml;
|
||||
|
||||
@@ -29,6 +30,15 @@ namespace Umbraco.Web.PublishedCache
|
||||
/// <remarks>The value of <paramref name="preview"/> overrides defaults.</remarks>
|
||||
IPublishedContent GetById(bool preview, Guid contentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a content identified by its Udi identifier.
|
||||
/// </summary>
|
||||
/// <param name="preview">A value indicating whether to consider unpublished content.</param>
|
||||
/// <param name="contentId">The content Udi identifier.</param>
|
||||
/// <returns>The content, or null.</returns>
|
||||
/// <remarks>The value of <paramref name="preview"/> overrides defaults.</remarks>
|
||||
IPublishedContent GetById(bool preview, Udi contentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a content identified by its unique identifier.
|
||||
/// </summary>
|
||||
@@ -45,6 +55,14 @@ namespace Umbraco.Web.PublishedCache
|
||||
/// <remarks>Considers published or unpublished content depending on defaults.</remarks>
|
||||
IPublishedContent GetById(Guid contentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a content identified by its unique identifier.
|
||||
/// </summary>
|
||||
/// <param name="contentId">The content unique identifier.</param>
|
||||
/// <returns>The content, or null.</returns>
|
||||
/// <remarks>Considers published or unpublished content depending on defaults.</remarks>
|
||||
IPublishedContent GetById(Udi contentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the cache contains a specified content.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user