We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecced0c commit 524c20bCopy full SHA for 524c20b
1 file changed
aspnetcore/grpc/client.md
@@ -86,13 +86,12 @@ A server streaming call starts with the client sending a request message. `Respo
86
87
```csharp
88
var client = new Greet.GreeterClient(channel);
89
-using (var call = client.SayHellos(new HelloRequest { Name = "World" }))
+using var call = client.SayHellos(new HelloRequest { Name = "World" });
90
+
91
+while (await call.ResponseStream.MoveNext())
92
{
- while (await call.ResponseStream.MoveNext())
- {
93
- Console.WriteLine("Greeting: " + call.ResponseStream.Current.Message);
94
- // "Greeting: Hello World" is written multiple times
95
- }
+ Console.WriteLine("Greeting: " + call.ResponseStream.Current.Message);
+ // "Greeting: Hello World" is written multiple times
96
}
97
```
98
0 commit comments