예제 #1
0
 public MediaCache(bool previewDefault, ContentStore.Snapshot snapshot, IAppCache snapshotCache, IAppCache elementsCache)
     : base(previewDefault)
 {
     _snapshot      = snapshot;
     _snapshotCache = snapshotCache;
     _elementsCache = elementsCache;
 }
예제 #2
0
        // TODO: figure this out
        // after the current snapshot has been resync-ed
        // it's too late for UmbracoContext which has captured previewDefault and stuff into these ctor vars
        // but, no, UmbracoContext returns snapshot.Content which comes from elements SO a resync should create a new cache

        public ContentCache(bool previewDefault, ContentStore.Snapshot snapshot, IAppCache snapshotCache, IAppCache elementsCache, IDomainCache domainCache, IGlobalSettings globalSettings, IVariationContextAccessor variationContextAccessor)
            : base(previewDefault)
        {
            _snapshot                 = snapshot;
            _snapshotCache            = snapshotCache;
            _elementsCache            = elementsCache;
            _domainCache              = domainCache;
            _globalSettings           = globalSettings;
            _variationContextAccessor = variationContextAccessor;
        }
예제 #3
0
        // TODO: figure this out
        // after the current snapshot has been resync-ed
        // it's too late for UmbracoContext which has captured previewDefault and stuff into these ctor vars
        // but, no, UmbracoContext returns snapshot.Content which comes from elements SO a resync should create a new cache

        public ContentCache(bool previewDefault, ContentStore.Snapshot snapshot, IAppCache snapshotCache, IAppCache elementsCache, DomainHelper domainHelper, IGlobalSettings globalSettings, ILocalizationService localizationService)
            : base(previewDefault)
        {
            _snapshot            = snapshot;
            _snapshotCache       = snapshotCache;
            _elementsCache       = elementsCache;
            _domainHelper        = domainHelper;
            _globalSettings      = globalSettings;
            _localizationService = localizationService;
        }
예제 #4
0
 // TODO: figure this out
 // after the current snapshot has been resync-ed
 // it's too late for UmbracoContext which has captured previewDefault and stuff into these ctor vars
 // but, no, UmbracoContext returns snapshot.Content which comes from elements SO a resync should create a new cache
 public ContentCache(
     bool previewDefault,
     ContentStore.Snapshot snapshot,
     IAppCache snapshotCache,
     IAppCache?elementsCache,
     IDomainCache domainCache,
     IOptions <GlobalSettings> globalSettings,
     IVariationContextAccessor variationContextAccessor)
     : base(previewDefault)
 {
     _snapshot                 = snapshot;
     _snapshotCache            = snapshotCache;
     _elementsCache            = elementsCache;
     _domainCache              = domainCache ?? throw new ArgumentNullException(nameof(domainCache));
     _globalSettings           = globalSettings.Value;
     _variationContextAccessor = variationContextAccessor;
 }
예제 #5
0
 public MediaCache(bool previewDefault, ContentStore.Snapshot snapshot, IVariationContextAccessor variationContextAccessor)
     : base(previewDefault)
 {
     _snapshot = snapshot;
     _variationContextAccessor = variationContextAccessor;
 }