public void RenderComponent(string componentName, IDictionary parameters)
{
BrailViewComponentContext componentContext =
new BrailViewComponentContext(this, null, componentName, OutputStream,
new Hashtable(StringComparer.InvariantCultureIgnoreCase));
this.AddViewComponentProperties(componentContext.ComponentParameters);
IViewComponentFactory componentFactory = (IViewComponentFactory)this.context.GetService(typeof(IViewComponentFactory));
ViewComponent component = componentFactory.Create(componentName);
component.Init(this.context, componentContext);
component.Render();
if (componentContext.ViewToRender != null)
{
this.OutputSubView("/" + componentContext.ViewToRender, componentContext.ComponentParameters);
}
this.RemoveViewComponentProperties(componentContext.ComponentParameters);
}