コード例 #1
0
    /// <summary>
    /// Overrides the Render method for application of MEF plugins.
    /// </summary>
    /// <param name="writer">an HtmlTextWriter object</param>
    protected override void Render(HtmlTextWriter writer)
    {
        var stringWriter = new StringWriter();
        var htmlWriter   = new HtmlTextWriter(stringWriter);

        base.Render(htmlWriter);
        var page = stringWriter.ToString();

        // modify page based on available plugins
        var business = new Plugins();

        page = business.ComposeRenderPlugins(page);

        writer.Write(page);
    }