How to implement a gRPC server in a .Net 6 console app?
simmarn opened this issue · 2 comments
simmarn commented
I have console applications using WCF that I want to migrate from .Net Framework to .Net 6 (or later). Microsoft recommends that gRPC shall be used. But all tutorials I find are using ASP.NET on the server side. I would really like to see an example on a gRPC server implemented as a .Net 6 console app.
osexpert commented
Possibly I misunderstand the question but just make a console app in eg. net6.0, add package Grpc.AspNetCore.Server, use
var builder = WebApplication.CreateBuilder(args);
Everything else is the same.