Esempio n. 1
0
 public CacheScopeImpl(SparkViewBase view, string identifier, CacheExpires expires)
 {
     _identifier = identifier;
     _expires = expires;
     _previousCacheScope = view._currentCacheScope;
     _cacheService = view.CacheService ?? _nullCacheService;
     _originator = new CacheOriginator(view.SparkViewContext);
 }
Esempio n. 2
0
        public void Init()
        {
            _subject = new SparkViewContext {Output = new SpoolWriter()};
            _originator = new CacheOriginator(_subject);

            _subject2 = new SparkViewContext { Output = new SpoolWriter() };
            _originator2 = new CacheOriginator(_subject2);
        }