public ViewComponentContext(SparkView view, SparkViewFactory viewEngine, IDictionary componentParameters, Action body, IDictionary <string, Action> sections) { _view = view; _viewEngine = viewEngine; _componentParameters = componentParameters; this.body = body; this.sections = sections; //_contextVarsAdapter = new ContextVarsAdapter(this); _contextVarsAdapter = new Hashtable(view.PropertyBag); }
public SparkViewData(SparkView view) { _view = view; }
public virtual void Contextualize(IEngineContext context, IControllerContext controllerContext, SparkViewFactory viewEngine, SparkView outerView) { _context = context; _controllerContext = controllerContext; _viewEngine = viewEngine; if (_viewEngine != null && _viewEngine.CacheServiceProvider != null) { CacheService = _viewEngine.CacheServiceProvider.GetCacheService(context); } if (outerView != null) { OnceTable = outerView.OnceTable; } }