using System; using Umbraco.Core; using Umbraco.Core.Cache; using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PublishedCache.XmlPublishedCache { /// /// Implements a facade. /// class Facade : IFacade { /// /// Initializes a new instance of the class with a content cache /// and a media cache. /// public Facade( PublishedContentCache contentCache, PublishedMediaCache mediaCache, PublishedMemberCache memberCache, DomainCache domainCache) { ContentCache = contentCache; MediaCache = mediaCache; MemberCache = memberCache; DomainCache = domainCache; } /// public IPublishedContentCache ContentCache { get; } /// public IPublishedMediaCache MediaCache { get; } /// public IPublishedMemberCache MemberCache { get; } /// public IDomainCache DomainCache { get; } /// public ICacheProvider FacadeCache => null; /// public ICacheProvider SnapshotCache => null; /// public IDisposable ForcedPreview(bool preview, Action callback = null) { // the XML cache does not support forcing preview, really, so, just pretend... return new ForcedPreviewObject(); } private class ForcedPreviewObject : DisposableObject { protected override void DisposeResources() { } } } }