BinaryProgrammaticContent Pennington.Pipeline
Programmatic content produced as a binary payload.
Properties
ByteGeneratorSystem.Func<System.Threading.Tasks.Task<byte[]>>- Deferred byte producer invoked when the content is needed.
ContentTypestring- MIME type for the response.
Constructors
.ctor
#public record BinaryProgrammaticContent(
Func<Task<byte[]>> ByteGenerator,
string ContentType
);Programmatic content produced as a binary payload.
Parameters
ByteGeneratorFunc<Task<byte[]>>- Deferred byte producer invoked when the content is needed.
ContentTypestring- 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
;
}