2016-06-10 16:37:28 +02:00
|
|
|
|
using System;
|
2017-09-29 15:51:33 +02:00
|
|
|
|
using Umbraco.Core.Cache;
|
2016-06-10 16:37:28 +02:00
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.PublishedCache
|
2016-05-26 17:12:04 +02:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The Umbraco facade.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public interface IFacade
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the <see cref="IPublishedContentCache"/>.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
IPublishedContentCache ContentCache { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the <see cref="IPublishedMediaCache"/>.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
IPublishedMediaCache MediaCache { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the <see cref="IPublishedMemberCache"/>.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
IPublishedMemberCache MemberCache { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the <see cref="IDomainCache"/>.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
IDomainCache DomainCache { get; }
|
2016-06-09 18:45:16 +02:00
|
|
|
|
|
2017-09-29 15:51:33 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the facade cache.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
ICacheProvider FacadeCache { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the snapshot cache.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
ICacheProvider SnapshotCache { get; }
|
|
|
|
|
|
|
2016-06-09 18:45:16 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Forces the facade preview mode.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="preview">The forced preview mode.</param>
|
|
|
|
|
|
/// <param name="callback">A callback to execute when reverting to previous preview.</param>
|
|
|
|
|
|
/// <remarks>
|
|
|
|
|
|
/// <para>Forcing to false means no preview. Forcing to true means 'full' preview if the facade is not already previewing;
|
|
|
|
|
|
/// otherwise the facade keeps previewing according to whatever settings it is using already.</para>
|
|
|
|
|
|
/// <para>Stops forcing preview when disposed.</para></remarks>
|
|
|
|
|
|
IDisposable ForcedPreview(bool preview, Action<bool> callback = null);
|
2016-05-26 17:12:04 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|