コード例 #1
0
 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);
 }
コード例 #2
0
 public SparkViewData(SparkView view)
 {
     _view = view;
 }
コード例 #3
0
        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;
            }
        }