Resvolution - WIP running without Resolution

This commit is contained in:
Stephan
2016-08-31 16:48:57 +02:00
parent 9dcc6b285f
commit e25e77f167
38 changed files with 248 additions and 370 deletions

View File

@@ -0,0 +1,32 @@
using LightInject;
using Umbraco.Core.Cache;
using Umbraco.Core.Components;
using Umbraco.Core.Persistence.UnitOfWork;
using Umbraco.Core.Services;
using Umbraco.Core.Strings;
using Umbraco.Core.DependencyInjection;
namespace Umbraco.Web.PublishedCache.XmlPublishedCache
{
[DisableComponent] // is not enabled by default
public class XmlCacheComponent : UmbracoComponentBase, IUmbracoCoreComponent
{
public override void Compose(ServiceContainer container)
{
base.Compose(container);
// register the XML facade service
container.RegisterSingleton<IFacadeService>(factory => new FacadeService(
factory.GetInstance<ServiceContext>(),
factory.GetInstance<IDatabaseUnitOfWorkProvider>(),
factory.GetInstance<CacheHelper>().RequestCache,
factory.GetAllInstances<IUrlSegmentProvider>(),
factory.GetInstance<IFacadeAccessor>()));
}
public void Initialize(IFacadeService service)
{
// nothing - this just ensures that the service is created at boot time
}
}
}