This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

ContentChangeImpact Pennington.Content

What an IContentService reports as affected by a single FileChangeNotification. AffectedRoutes is null for a wildcard (consumers drop their full cache), empty for no impact, and populated for per-route eviction.

Properties

AffectedRoutes ImmutableArray<ContentRoute>?
Routes that need re-rendering, or null to signal a wildcard.
None ContentChangeImpact
No routes affected — the change is outside this service's scope.
Wildcard ContentChangeImpact
Affects an unknown / unbounded set of routes; consumers should drop their full cache.

Constructors

ContentChangeImpact

#
public ContentChangeImpact(ImmutableArray<ContentRoute>? AffectedRoutes)

What an IContentService reports as affected by a single FileChangeNotification. AffectedRoutes is null for a wildcard (consumers drop their full cache), empty for no impact, and populated for per-route eviction.

Parameters

AffectedRoutes ImmutableArray<ContentRoute>?
Routes that need re-rendering, or null to signal a wildcard.

Methods

Routes

#
public static ContentChangeImpact Routes(ImmutableArray<ContentRoute> routes)

Affects the given routes; consumers evict per-route.

Parameters

routes ImmutableArray<ContentRoute>

Returns

ContentChangeImpact

Pennington.Content.ContentChangeImpact

namespace Pennington.Content;

/// What an IContentService reports as affected by a single FileChangeNotification. AffectedRoutes is null for a wildcard (consumers drop their full cache), empty for no impact, and populated for per-route eviction.
public record ContentChangeImpact
{
    /// Routes that need re-rendering, or null to signal a wildcard.
    
public ImmutableArray<ContentRoute>? AffectedRoutes { get; set; }
/// What an IContentService reports as affected by a single FileChangeNotification. AffectedRoutes is null for a wildcard (consumers drop their full cache), empty for no impact, and populated for per-route eviction.
public ContentChangeImpact(ImmutableArray<ContentRoute>? AffectedRoutes)
; /// No routes affected — the change is outside this service's scope.
public static ContentChangeImpact None { get; }
/// Affects the given routes; consumers evict per-route.
public static ContentChangeImpact Routes(ImmutableArray<ContentRoute> routes)
; /// Affects an unknown / unbounded set of routes; consumers should drop their full cache.
public static ContentChangeImpact Wildcard { get; }
}