We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d955f05 commit 006afe0Copy full SHA for 006afe0
aspnetcore/tutorials/grpc/grpc-start/sample/GrpcGreeterClient/Program.cs
@@ -13,7 +13,7 @@ class Program
13
static async Task Main(string[] args)
14
{
15
// The port number(5001) must match the port of the gRPC server.
16
- var channel = GrpcChannel.ForAddress("https://localhost:5001");
+ using var channel = GrpcChannel.ForAddress("https://localhost:5001");
17
var client = new Greeter.GreeterClient(channel);
18
var reply = await client.SayHelloAsync(
19
new HelloRequest { Name = "GreeterClient" });
0 commit comments