ASP.NET MVC Core 1.0 Protocol Buffer formatters inspired by https://github.com/damienbod/AspNetMvc6ProtobufFormatters with refactoring formatters to class library. Enables adding them to arbitrary MVC project exactly like the built in Json formatters.
Startup.cs add the protocol buffer formatters exactly like you add the built in Json Formatters.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvcCore()
.AddProtobufFormatters();
}
public void Configure(IApplicationBuilder app)
{
app.UseMvc();
}
ASP.NET Mvc Core API sample project under test/ProtobufFormatter.WebApi.Test