当前位置: 首页>>代码示例>>C#>>正文


C# Controller.PostSendView方法代码示例

本文整理汇总了C#中Castle.MonoRail.Framework.Controller.PostSendView方法的典型用法代码示例。如果您正苦于以下问题:C# Controller.PostSendView方法的具体用法?C# Controller.PostSendView怎么用?C# Controller.PostSendView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Castle.MonoRail.Framework.Controller的用法示例。


在下文中一共展示了Controller.PostSendView方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PostSendView

		/// <summary>
		/// Invokes the <see cref="Controller.PostSendView"/>
		/// </summary>
		/// <param name="controller">The controller.</param>
		/// <param name="view">The view argument.</param>
		protected virtual void PostSendView(Controller controller, object view)
		{
			controller.PostSendView(view);
		}
开发者ID:nats,项目名称:castle-1.0.3-mono,代码行数:9,代码来源:ViewEngineBase.cs

示例2: Process

		public override void Process(TextWriter output, IRailsEngineContext context, Controller controller, string templateName)
		{
			string fileName = GetFileName(templateName);
			AspViewBase view = null;
			TextWriter viewOutput = output;
			AspViewBase layout = null;
			if (controller.LayoutName != null)
			{
				layout = GetLayout(output, context, controller);
				viewOutput = layout.ViewOutput;
			}
			view = GetView(fileName, viewOutput, context, controller);
			if (view == null)
				throw new RailsException(string.Format(
					"Cannot find view '{0}'", fileName));
			controller.PreSendView(view);
			view.Render();
			if (layout != null)
			{
				layout.SetParent(view);
				layout.Render();
			}
			controller.PostSendView(view);
		}
开发者ID:mgagne-atman,项目名称:Projects,代码行数:24,代码来源:AspViewEngine.cs

示例3: Process

		public override void Process(TextWriter output, IRailsEngineContext context, Controller controller,
									 string templateName)
		{
			Log("Starting to process request for {0}", templateName);
			string file = templateName.ToUpper() + ViewFileExtension;
			BrailBase view;
			// Output may be the layout's child output if a layout exists
			// or the context.Response.Output if the layout is null
			LayoutViewOutput layoutViewOutput = GetOutput(output, context, controller);
			// Will compile on first time, then save the assembly on the cache.
			view = GetCompiledScriptInstance(file, layoutViewOutput.Output, context, controller);
			controller.PreSendView(view);
			Log("Executing view {0}", templateName);
			view.Run();
			if (layoutViewOutput.Layout != null)
			{
				layoutViewOutput.Layout.SetParent(view);
				layoutViewOutput.Layout.Run();
			}
			Log("Finished executing view {0}", templateName);
			controller.PostSendView(view);
		}
开发者ID:nats,项目名称:castle-1.0.3-mono,代码行数:22,代码来源:BooViewEngine.cs


注:本文中的Castle.MonoRail.Framework.Controller.PostSendView方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。