fixes lots of tests
This commit is contained in:
@@ -23,6 +23,7 @@ namespace Umbraco.Core.ObjectResolution
|
||||
internal ContainerLazyManyObjectsResolver(IServiceContainer container, ILogger logger, Func<IEnumerable<Type>> typeListProducerList, ObjectLifetimeScope scope = ObjectLifetimeScope.Application)
|
||||
: base(logger, typeListProducerList, scope)
|
||||
{
|
||||
if (container == null) throw new ArgumentNullException("container");
|
||||
_container = container;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace Umbraco.Core.ObjectResolution
|
||||
internal LazyManyObjectsResolverBase(ILogger logger, Func<IEnumerable<Type>> typeListProducerList, ObjectLifetimeScope scope = ObjectLifetimeScope.Application)
|
||||
: base(logger, scope)
|
||||
{
|
||||
if (typeListProducerList == null) throw new ArgumentNullException("typeListProducerList");
|
||||
_typeListProducerList.Add(typeListProducerList);
|
||||
Initialize();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user