コード例 #1
0
 public ThemedViewResultFilter(IThemeManager themeManager, WorkContext workContext, ILayoutAwareViewEngine layoutAwareViewEngine)
 {
     _themeManager          = themeManager;
     _workContext           = workContext.AsMvcWorkContext();
     _layoutAwareViewEngine = layoutAwareViewEngine;
     Logger = NullLogger.Instance;
 }
コード例 #2
0
        public LayoutAwareViewEngine(IThemeAwareViewEngine themeAwareViewEngine, WorkContext workContext, IDisplayHelperFactory displayHelperFactory)
        {
            _themeAwareViewEngine = themeAwareViewEngine;
            _workContext          = workContext.AsMvcWorkContext();
            _displayHelperFactory = displayHelperFactory;

            Logger = NullLogger.Instance;
        }
コード例 #3
0
ファイル: WebViewPage.cs プロジェクト: xubinhua888/RabbitHub
        /// <summary>
        /// 初始化 <see cref="T:System.Web.Mvc.AjaxHelper"/>、<see cref="T:System.Web.Mvc.HtmlHelper"/> 和 <see cref="T:System.Web.Mvc.UrlHelper"/> 类。
        /// </summary>
        public override void InitHelpers()
        {
            base.InitHelpers();

            WorkContext = ViewContext.GetWorkContext().AsMvcWorkContext();

            _display = DisplayHelperFactory.CreateHelper(ViewContext, this);
            _layout  = WorkContext.Layout;
        }