Castle.MonoRail.Framework.Controller.PreSendView C# (CSharp) Method

PreSendView() public method

Invoked by the view engine to perform any logic before the view is sent to the client.
public PreSendView ( object view ) : void
view object
return void
		public virtual void PreSendView(object view)
		{
			if (view is IControllerAware)
			{
				(view as IControllerAware).SetController(this);
			}

			if (context.Items != null)
			{
				context.Items[Constants.ControllerContextKey] = this;
			}
		}

Usage Example

Example #1
0
		/// <summary>
		/// Invokes the <see cref="Controller.PreSendView"/>
		/// </summary>
		/// <param name="controller">The controller.</param>
		/// <param name="view">The view argument.</param>
		protected virtual void PreSendView(Controller controller, object view)
		{
			controller.PreSendView(view);
		}
All Usage Examples Of Castle.MonoRail.Framework.Controller::PreSendView