예제 #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);
 }
예제 #2
0
 public InlineBlockOutputScope(SparkViewBase sparkView, IResourceRegistry resourceRegistry)
 {
     _sparkView = sparkView;
     _resourceRegistry = resourceRegistry;
     _previousWriter = sparkView.Output;
     _blockWriter = new SpoolWriter();
     _sparkView.Output = _blockWriter;
 }
예제 #3
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);
 }
예제 #4
0
 public OutputScopeImpl(SparkViewBase view, TextWriter writer)
 {
     this.view = view;
     previous = view.Output;
     view.Output = writer;
 }
예제 #5
0
 protected AbstractSparkView(SparkViewBase decorated)
     : base(decorated)
 {
 }
예제 #6
0
 protected AbstractSparkView(SparkViewBase decorated)
     : base(decorated)
 {
 }
예제 #7
0
 protected SparkViewDecorator(SparkViewBase decorated)
 {
     _decorated = decorated;
 }
 protected SparkViewDecorator(SparkViewBase decorated)
 {
     this._decorated = decorated;
 }
예제 #9
0
 public MarkdownOutputScopeImpl(SparkViewBase view, TextWriter writer)
 {
     this.view   = view;
     previous    = view.Output;
     view.Output = writer;
 }