Hi, I have implemented a simple gRPC service using .NET Core 3.1 that is running as a ConsoleApp.
I wrote a simple .NET Core 3.1 gRPC client, that is running as a Console app, too.
If I disable in the system configuration the option to detect the proxy my sample works fine.
If it is activated I get a error message and in WireShark I find the information, that the proxy blocks the call
How can I force the client not to use the proxy?
This is my client code:
var channel = new Channel($"127.0.0.1:2231", ChannelCredentials.Insecure);
_serviceClient = new MyService.MyServiceClient(channel);
var request = new HelloRequest {Name = "Franz"};
var reply = _serviceClient.SayHello(request);
And this is the relevant code from the gRPC service:
var credentials = ServerCredentials.Insecure;
var hostName = "127.0.0.1";
_port = new ServerPort(hostName, 2231, credentials);
_rpcServer = new Server { Services = {MyService.BindService(new MyServiceImpl())}, Ports = { _port }};
_rpcServer.Start();
How do I configure on client side to use or not to use the proxy? Or how can I explicit configure the proxy including the credentials on the client?
Thanks,
Christian