RazorIslandRenderer Pennington.Islands
Base class for island renderers that render a Razor component.
Properties
IslandNamestring- Unique key identifying this island in the envelope's islands dictionary.
Methods
RenderAsync
#public async Task<string> RenderAsync(ContentRoute route, RenderContext context);Renders the island HTML for the given route, or returns an empty string to skip.
Parameters
routeContentRoutecontextRenderContext
Returns
Task<string>Pennington.Islands.RazorIslandRenderer
namespace Pennington.Islands;
/// Base class for island renderers that render a Razor component.
public class RazorIslandRenderer
{
/// Unique key identifying this island in the envelope's islands dictionary.
public abstract string IslandName { get; }
/// Renders the island HTML for the given route, or returns an empty string to skip.
public async Task<string> RenderAsync(ContentRoute route, RenderContext context);
}