Rename DependencyInjection into DI, cleanup components, compose

This commit is contained in:
Stephan
2016-10-07 14:34:55 +02:00
parent 172ae81924
commit a00ee8d275
232 changed files with 1119 additions and 589 deletions

View File

@@ -1,7 +1,5 @@
using LightInject;
using Umbraco.Core;
using Umbraco.Core;
using Umbraco.Core.Components;
using Umbraco.Core.DependencyInjection;
using Umbraco.Core.Logging;
using Umbraco.Core.Persistence.UnitOfWork;
using Umbraco.Core.Services;
@@ -10,12 +8,12 @@ namespace Umbraco.Web.PublishedCache.NuCache
{
public class NuCacheComponent : UmbracoComponentBase, IUmbracoCoreComponent
{
public override void Compose(ServiceContainer container)
public override void Compose(Composition composition)
{
base.Compose(container);
base.Compose(composition);
// register the NuCache facade service
container.RegisterSingleton<IFacadeService>(factory => new FacadeService(
composition.SetFacadeService(factory => new FacadeService(
new FacadeService.Options { FacadeCacheIsApplicationRequestCache = true },
factory.GetInstance<MainDom>(),
factory.GetInstance<IRuntimeState>(),
@@ -26,8 +24,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
// add the NuCache health check (hidden from type finder)
// todo - no NuCache health check yet
//var builder = container.GetInstance<HealthCheckCollectionBuilder>();
//builder.Add<NuCacheIntegrityHealthCheck>();
//composition.HealthChecks().Add<NuCacheIntegrityHealthCheck>();
}
public void Initialize(IFacadeService service)