DiscoveredItem Pennington.Pipeline
A content item discovered by a content service but not yet run through the pipeline.
Properties
MetadataIFrontMatter- Front matter the discovering service already parsed, when its source carried any; null for sources whose metadata is not known until parse or render time.
RawBodystring- Raw markdown body the discovering service already parsed and cached, when its source carried any; null for sources whose body is not read until parse time. When both this and
Metadataare present, parsers serve them directly instead of re-reading the file. The discovering service keeps this cache fresh by re-reading a changed file on a trailing-edge settle, so it reflects the finished file rather than one the writer still holds. RouteContentRoute- Canonical route for the item.
SourceContentSource- Origin describing how the item's content is produced.
Constructors
DiscoveredItem
#public DiscoveredItem(ContentRoute Route, ContentSource Source)
A content item discovered by a content service but not yet run through the pipeline.
Parameters
RouteContentRoute- Canonical route for the item.
SourceContentSource- Origin describing how the item's content is produced.
Pennington.Pipeline.DiscoveredItem
namespace Pennington.Pipeline;
/// A content item discovered by a content service but not yet run through the pipeline.
public record DiscoveredItem
{
/// A content item discovered by a content service but not yet run through the pipeline.
public DiscoveredItem(ContentRoute Route, ContentSource Source)
;
/// Front matter the discovering service already parsed, when its source carried any; null for sources whose metadata is not known until parse or render time.
public IFrontMatter Metadata { get; set; }
/// Raw markdown body the discovering service already parsed and cached, when its source carried any; null for sources whose body is not read until parse time. When both this and Metadata are present, parsers serve them directly instead of re-reading the file. The discovering service keeps this cache fresh by re-reading a changed file on a trailing-edge settle, so it reflects the finished file rather than one the writer still holds.
public string RawBody { get; set; }
/// Canonical route for the item.
public ContentRoute Route { get; set; }
/// Origin describing how the item's content is produced.
public ContentSource Source { get; set; }
}