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