コード例 #1
0
ファイル: SparkViewBase.cs プロジェクト: Eilon/spark
 public CacheScopeImpl(SparkViewBase view, string identifier, CacheExpires expires)
 {
     _identifier = identifier;
     _expires = expires;
     _previousCacheScope = view._currentCacheScope;
     _cacheService = view.CacheService ?? _nullCacheService;
     _originator = new CacheOriginator(view.SparkViewContext);
 }
コード例 #2
0
ファイル: CacheOriginatorTester.cs プロジェクト: Eilon/spark
        public void Init()
        {
            _subject = new SparkViewContext {Output = new SpoolWriter()};
            _originator = new CacheOriginator(_subject);

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