コード例 #1
0
ファイル: RazorViewEngine.cs プロジェクト: Nakro/Mvc
 /// <summary>
 /// Initializes a new instance of the RazorViewEngine class.
 /// </summary>
 /// <param name="pageFactory">The page factory used for creating <see cref="IRazorPage"/>.</param>
 /// <param name="pageActivator">Activator for activated instances of <see cref="IRazorPage"/>.</param>
 /// <param name="viewStartProvider">The provider used to provide instances of ViewStarts applicable to the 
 /// page being rendered.</param>
 public RazorViewEngine(IRazorPageFactory pageFactory,
                        IRazorPageActivator pageActivator,
                        IViewStartProvider viewStartProvider)
 {
     _pageFactory = pageFactory;
     _pageActivator = pageActivator;
     _viewStartProvider = viewStartProvider;
 }
コード例 #2
0
ファイル: RazorViewFactory.cs プロジェクト: huoxudong125/Mvc
 /// <summary>
 /// Initializes a new instance of RazorViewFactory
 /// </summary>
 /// <param name="pageActivator">The <see cref="IRazorPageActivator"/> used to activate pages.</param>
 /// <param name="viewStartProvider">The <see cref="IViewStartProvider"/> used for discovery of _ViewStart
 /// pages</param>
 public RazorViewFactory(
     IRazorPageActivator pageActivator,
     IViewStartProvider viewStartProvider,
     IHtmlEncoder htmlEncoder)
 {
     _pageActivator = pageActivator;
     _viewStartProvider = viewStartProvider;
     _htmlEncoder = htmlEncoder;
 }
コード例 #3
0
ファイル: RazorView.cs プロジェクト: martinvobr/Wyam
 /// <summary>
 /// Initializes a new instance of <see cref="RazorView"/>
 /// </summary>
 /// <param name="viewEngine">The <see cref="IRazorViewEngine"/> used to locate Layout pages.</param>
 /// <param name="pageActivator">The <see cref="IRazorPageActivator"/> used to activate pages.</param>
 /// <param name="viewStartProvider">The <see cref="IViewStartProvider"/> used for discovery of _ViewStart
 /// <param name="razorPage">The <see cref="IRazorPage"/> instance to execute.</param>
 /// <param name="isPartial">Determines if the view is to be executed as a partial.</param>
 /// pages</param>
 public RazorView(IRazorViewEngine viewEngine,
                  IViewStartProvider viewStartProvider,
                  IRazorPage razorPage,
                  bool isPartial)
 {
     _viewEngine = viewEngine;
     _viewStartProvider = viewStartProvider;
     RazorPage = razorPage;
     IsPartial = isPartial;
 }
コード例 #4
0
ファイル: RazorView.cs プロジェクト: Nakro/Mvc
 /// <summary>
 /// Initializes a new instance of RazorView
 /// </summary>
 /// <param name="page">The page to execute</param>
 /// <param name="pageFactory">The view factory used to instantiate additional views.</param>
 /// <param name="pageActivator">The <see cref="IRazorPageActivator"/> used to activate pages.</param>
 /// <param name="executeViewHierarchy">A value that indiciates whether the view hierarchy that involves 
 /// view start and layout pages are executed as part of the executing the page.</param>
 public RazorView([NotNull] IRazorPageFactory pageFactory,
                  [NotNull] IRazorPageActivator pageActivator,
                  [NotNull] IViewStartProvider viewStartProvider,
                  [NotNull] IRazorPage page,
                  bool executeViewHierarchy)
 {
     _pageFactory = pageFactory;
     _pageActivator = pageActivator;
     _viewStartProvider = viewStartProvider;
     _page = page;
     _executeViewHierarchy = executeViewHierarchy;
 }
コード例 #5
0
ファイル: RazorView.cs プロジェクト: 4myBenefits/Mvc
 /// <summary>
 /// Initializes a new instance of <see cref="RazorView"/>
 /// </summary>
 /// <param name="viewEngine">The <see cref="IRazorViewEngine"/> used to locate Layout pages.</param>
 /// <param name="pageActivator">The <see cref="IRazorPageActivator"/> used to activate pages.</param>
 /// <param name="viewStartProvider">The <see cref="IViewStartProvider"/> used for discovery of _ViewStart
 /// <param name="razorPage">The <see cref="IRazorPage"/> instance to execute.</param>
 /// <param name="htmlEncoder">The HTML encoder.</param>
 /// <param name="isPartial">Determines if the view is to be executed as a partial.</param>
 /// pages</param>
 public RazorView(
     IRazorViewEngine viewEngine,
     IRazorPageActivator pageActivator,
     IViewStartProvider viewStartProvider,
     IRazorPage razorPage,
     IHtmlEncoder htmlEncoder,
     bool isPartial)
 {
     _viewEngine = viewEngine;
     _pageActivator = pageActivator;
     _viewStartProvider = viewStartProvider;
     RazorPage = razorPage;
     _htmlEncoder = htmlEncoder;
     IsPartial = isPartial;
 }
コード例 #6
0
ファイル: RazorViewFactory.cs プロジェクト: martinvobr/Wyam
 /// <summary>
 /// Initializes a new instance of RazorViewFactory
 /// </summary>
 /// <param name="pageActivator">The <see cref="IRazorPageActivator"/> used to activate pages.</param>
 /// <param name="viewStartProvider">The <see cref="IViewStartProvider"/> used for discovery of _ViewStart
 /// pages</param>
 public RazorViewFactory(IViewStartProvider viewStartProvider)
 {
     _viewStartProvider = viewStartProvider;
 }