21 lines
871 B
C#
21 lines
871 B
C#
using System.Collections.Generic;
|
|
using Umbraco.Core.Scoping;
|
|
|
|
namespace Umbraco.Web.PublishedCache.NuCache.DataSource
|
|
{
|
|
/// <summary>
|
|
/// Defines a data source for NuCache.
|
|
/// </summary>
|
|
internal interface IDataSource
|
|
{
|
|
ContentNodeKit GetContentSource(IScope scope, int id);
|
|
IEnumerable<ContentNodeKit> GetAllContentSources(IScope scope);
|
|
IEnumerable<ContentNodeKit> GetBranchContentSources(IScope scope, int id);
|
|
IEnumerable<ContentNodeKit> GetTypeContentSources(IScope scope, IEnumerable<int> ids);
|
|
|
|
ContentNodeKit GetMediaSource(IScope scope, int id);
|
|
IEnumerable<ContentNodeKit> GetAllMediaSources(IScope scope);
|
|
IEnumerable<ContentNodeKit> GetBranchMediaSources(IScope scope, int id);
|
|
IEnumerable<ContentNodeKit> GetTypeMediaSources(IScope scope, IEnumerable<int> ids);
|
|
}
|
|
} |