Registering lightinject with itself again due to mapper collection builder.

It now fails becuse it doesn't support last registered as default ootb when instantiating cachehelper.
Castle fails on missing mapper collection builder when examine starts indexing.
This commit is contained in:
Lars-Erik Aabech
2018-09-03 00:38:53 +02:00
committed by Lars-Erik Aabech
parent 6bb507037b
commit 51c4962477

View File

@@ -20,6 +20,8 @@ namespace Umbraco.Core.Composing.LightInject
protected LightInjectContainer(ServiceContainer container)
{
Container = container;
container.RegisterSingleton<IContainer>(_ => this);
}
/// <summary>