using Umbraco.Core.ObjectResolution;
namespace Umbraco.Web.PublishedCache
{
///
/// Resolves the IPublishedCaches object.
///
internal sealed class PublishedCachesResolver : SingleObjectResolverBase
{
///
/// Initializes a new instance of the class with caches.
///
/// The caches.
/// The resolver is created by the WebBootManager and thus the constructor remains internal.
internal PublishedCachesResolver(IPublishedCaches caches)
: base(caches)
{ }
///
/// Sets the caches.
///
/// The caches.
/// For developers, at application startup.
public void SetCaches(IPublishedCaches caches)
{
Value = caches;
}
///
/// Gets the caches.
///
public IPublishedCaches Caches
{
get { return Value; }
}
}
}