Skip to content

Sharing gRPC ProtoBuff contracts using an endpoint

Notifications You must be signed in to change notification settings

christian7877/GrpcEndpoints

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sharing gRPC ProtoBuff contracts using an endpoint

gRPC services require a service contract usually defined using the Protocol Buffer Language in proto files. The service contract is then used to generate your C# (or language of your choice) server side classes and your client side proxies. Sharing these proto contract files is necessary for generating these classes. However, there is no easy way to share these files other than copying them from the server to the client. Sharing files like this can be especially difficult in a Microservices architecture where there can be many different clients developed by many different teams. This repository shows how to setup the ASP.NET Core middleware to add your ProtoBuf files and an endpoint.

View the Middlware branch for an implementation that replaces the Startup.Config() code with a Middleware Extension method

About

Sharing gRPC ProtoBuff contracts using an endpoint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%