Skip to content

damienpontifex/ProtobufFormatter

Repository files navigation

ProtobufFormatters

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.

Web API Usage

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();
}

Sample Usage

ASP.NET Mvc Core API sample project under test/ProtobufFormatter.WebApi.Test

About

ASP.NET Core 1.0 MVC Protobuf Formatters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages