Exemplo n.º 1
0
		/// <summary>
		/// Sets the context for the controller
		/// </summary>
		/// <param name="engineContext">The engine context.</param>
		/// <param name="context">The controller context.</param>
		public virtual void Contextualize(IEngineContext engineContext, IControllerContext context)
		{
			this.context = context;
			SetEngineContext(engineContext);
			renderingSupport = new RenderingSupport(context, engineContext);
			isContextualized = true;
		}
 public JsonFormatter(IControllerContext context, IEngineContext engineContext)
 {
     _engineContext = engineContext;
     _renderingSupport = new RenderingSupport(context, engineContext);                
 }