Minor fix in Core DI

This commit is contained in:
Stephan
2016-10-17 15:16:07 +02:00
parent d8ba9723c8
commit 422fef84ff
2 changed files with 6 additions and 11 deletions

View File

@@ -101,12 +101,6 @@ namespace Umbraco.Core.DI
// awkward but it works
var serviceContainer = container as IServiceContainer;
if (serviceContainer == null) throw new Exception("Container is not IServiceContainer.");
// fixme fixme fixme more - wtf?
// has moved to core runtime, why?
// register persistence mappers
serviceContainer.RegisterCollectionBuilder<MapperCollectionBuilder>()
.Add(f => f.GetInstance<PluginManager>().ResolveAssignedMapperTypes());
}
}
}