Removed introduced second constructors for IOptions based depenedencies and used Options.Create instead.

This commit is contained in:
Andy Butland
2020-08-26 11:58:44 +02:00
parent 96104b9fdf
commit 64f8752587
23 changed files with 31 additions and 159 deletions

View File

@@ -1239,7 +1239,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
return new PublishedSnapshot.PublishedSnapshotElements
{
ContentCache = new ContentCache(previewDefault, contentSnap, snapshotCache, elementsCache, domainCache, _globalSettings, VariationContextAccessor),
ContentCache = new ContentCache(previewDefault, contentSnap, snapshotCache, elementsCache, domainCache, Options.Create(_globalSettings), VariationContextAccessor),
MediaCache = new MediaCache(previewDefault, mediaSnap, VariationContextAccessor),
MemberCache = new MemberCache(previewDefault, snapshotCache, _serviceContext.MemberService, memberTypeCache, PublishedSnapshotAccessor, VariationContextAccessor, _entitySerializer, _publishedModelFactory),
DomainCache = domainCache,