2012-09-14 09:09:23 +07:00
|
|
|
using Umbraco.Core.ObjectResolution;
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An object resolver to return the IPublishedMediaStore
|
|
|
|
|
/// </summary>
|
2013-01-23 18:40:40 +03:00
|
|
|
internal sealed class PublishedMediaStoreResolver : SingleObjectResolverBase<PublishedMediaStoreResolver, IPublishedMediaStore>
|
2012-09-14 09:09:23 +07:00
|
|
|
{
|
|
|
|
|
internal PublishedMediaStoreResolver(IPublishedMediaStore publishedMediaStore)
|
|
|
|
|
: base(publishedMediaStore)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Can be used by developers at runtime to set their IContentStore at app startup
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="publishedMediaStore"></param>
|
|
|
|
|
public void SetContentStore(IPublishedMediaStore publishedMediaStore)
|
|
|
|
|
{
|
|
|
|
|
Value = publishedMediaStore;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Returns the IContentStore
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IPublishedMediaStore PublishedMediaStore
|
|
|
|
|
{
|
|
|
|
|
get { return Value; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|