ContentToCreate Pennington.Content
A dynamically generated file (e.g., search index, RSS feed).
Properties
ContentGeneratorSystem.Func<System.Threading.Tasks.Task<byte[]>>- Produces the file bytes when invoked.
ContentTypestring- MIME type served for the generated file.
OutputPathPennington.Routing.FilePath- Destination path in the generated site.
Constructors
.ctor
#public record ContentToCreate(FilePath OutputPath, Func<Task<byte[]>> ContentGenerator, string ContentType);A dynamically generated file (e.g., search index, RSS feed).
Parameters
OutputPathFilePath- Destination path in the generated site.
ContentGeneratorFunc<Task<byte[]>>- Produces the file bytes when invoked.
ContentTypestring- MIME type served for the generated file.
Pennington.Content.ContentToCreate
namespace Pennington.Content;
/// A dynamically generated file (e.g., search index, RSS feed).
public record ContentToCreate
{
/// A dynamically generated file (e.g., search index, RSS feed).
public record ContentToCreate(FilePath OutputPath, Func<Task<byte[]>> ContentGenerator, string ContentType);
/// Produces the file bytes when invoked.
Func<Task<byte[]>> ContentGenerator
;
/// MIME type served for the generated file.
string ContentType
;
/// Destination path in the generated site.
FilePath OutputPath
;
}