Rename DependencyInjection into DI, cleanup components, compose
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user