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