Update troubleshoot.md (#14243)
parent
680e7b5f28
commit
0f360e6e0b
|
@ -76,7 +76,7 @@ Additional configuration is required to call insecure gRPC services with the .NE
|
||||||
AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);
|
AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);
|
||||||
|
|
||||||
// The port number(5000) must match the port of the gRPC server.
|
// The port number(5000) must match the port of the gRPC server.
|
||||||
var channel = GrpcChannel.ForAddress("https://localhost:5001");
|
var channel = GrpcChannel.ForAddress("http://localhost:5000");
|
||||||
var client = new Greet.GreeterClient(channel);
|
var client = new Greet.GreeterClient(channel);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue