Lagrange Proto Formatter with Source Generator
$ dotnet add package Lagrange.Proto.FormatterLagrange.Proto Adapter For ASP.NET
Example Usage
var protobufOptions = new ProtobufFormatterOptions
{
SupportedContentTypes = { "application/x-protobuf" }
};
builder.Services.AddControllers()
.AddGeneratedProtobufFormatters(protobufOptions);