.net GRPC Gateway Routing pattern

81 Views Asked by At

I have 2 GRPC services. And want create service which release Gateway Routing pattern. How i can do it ?

i use: .net 7 C# 11

I tried to ask a question to chagpt and he gave this result: but google doesn't know any exact entry for the method =))

enter image description here

services.AddGrpcGateway(options =>
{
    options.AddGateway("books", gateway =>
    {
        gateway.AddEndpoint("localhost:5001");
    });

    options.AddGateway("users", gateway =>
    {
        gateway.AddEndpoint("localhost:5003");
    });
});
0

There are 0 best solutions below

Related Questions in GRPC-C#