Changes all collections from collection builders to resolve the concrete instances lazily.
This means we don't have to inject Lazy<T> all over the place when dealing with colleciton builders and circular references since this will automatically just work OOTB. This in theory should also allocate less instances during startup.
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Umbraco.Cms.Core.Composing;
|
||||
|
||||
namespace Umbraco.Cms.Core.Strings
|
||||
{
|
||||
public class UrlSegmentProviderCollection : BuilderCollectionBase<IUrlSegmentProvider>
|
||||
{
|
||||
public UrlSegmentProviderCollection(IEnumerable<IUrlSegmentProvider> items)
|
||||
: base(items)
|
||||
{ }
|
||||
public UrlSegmentProviderCollection(Func<IEnumerable<IUrlSegmentProvider>> items) : base(items)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user