This site provides a machine-readable index at /llms.txt.

Skip to main content Skip to navigation

SpaPageDataService Pennington.Islands

Assembles SPA page data by coordinating island renderers.

Constructors

.ctor

#
public SpaPageDataService(IEnumerable<IIslandRenderer> renderers, RenderContext renderContext);

Creates a service coordinating the supplied island renderers under the given render context.

Parameters

renderers IEnumerable<IIslandRenderer>
renderContext RenderContext

Methods

GetPageDataAsync

#
public async Task<SpaEnvelopeDto?> GetPageDataAsync(ContentRoute route, string title, string? description = null);

Get the SPA envelope for a given route. Returns null if no renderers produce content.

Parameters

route ContentRoute
title string
description string? (optional)

Returns

Task<SpaEnvelopeDto?>

Pennington.Islands.SpaPageDataService

namespace Pennington.Islands;

/// Assembles SPA page data by coordinating island renderers.
public class SpaPageDataService
{
    /// Creates a service coordinating the supplied island renderers under the given render context.
    
public SpaPageDataService(IEnumerable<IIslandRenderer> renderers, RenderContext renderContext);
/// Get the SPA envelope for a given route. Returns null if no renderers produce content.
public async Task<SpaEnvelopeDto?> GetPageDataAsync(ContentRoute route, string title, string? description = null);
}