using Umbraco.Core.ObjectResolution; namespace Umbraco.Web { /// /// An object resolver to return the IPublishedContentStore /// internal sealed class PublishedContentStoreResolver : SingleObjectResolverBase { internal PublishedContentStoreResolver(IPublishedContentStore publishedContentStore) : base(publishedContentStore) { } /// /// Can be used by developers at runtime to set their IContentStore at app startup /// /// public void SetContentStore(IPublishedContentStore publishedContentStore) { Value = publishedContentStore; } /// /// Returns the IContentStore /// public IPublishedContentStore PublishedContentStore { get { return Value; } } } }