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

Skip to main content Skip to navigation

BinaryProgrammaticContent Pennington.Pipeline

Programmatic content produced as a binary payload.

Properties

ByteGenerator System.Func<System.Threading.Tasks.Task<byte[]>>
Deferred byte producer invoked when the content is needed.
ContentType string
MIME type for the response.

Constructors

.ctor

#
public record BinaryProgrammaticContent(
    Func<Task<byte[]>> ByteGenerator,
    string ContentType
);

Programmatic content produced as a binary payload.

Parameters

ByteGenerator Func<Task<byte[]>>
Deferred byte producer invoked when the content is needed.
ContentType string
MIME type for the response.

Pennington.Pipeline.BinaryProgrammaticContent

namespace Pennington.Pipeline;

/// Programmatic content produced as a binary payload.
public record BinaryProgrammaticContent
{
    /// Programmatic content produced as a binary payload.
    
public record BinaryProgrammaticContent(
    Func<Task<byte[]>> ByteGenerator,
    string ContentType
);
/// Deferred byte producer invoked when the content is needed.
Func<Task<byte[]>> ByteGenerator
; /// MIME type for the response.
string ContentType
; }