Example #1
0
 private static async Task ListPerson2(helloMessage.helloMessageClient client)
 {
     using (var call = client.ListPerson2(new Persion()
     {
         Name = "B"
     }))
     {
         var responseStream    = call.ResponseStream;
         CancellationToken can = new CancellationToken();
         while ((await responseStream.MoveNext(can)))
         {
             Persion model = responseStream.Current;
             Console.WriteLine($"Name:{model.Name}");
         }
     }
 }