コード例 #1
0
ファイル: Program.cs プロジェクト: michaelringholm/grpc
 private static async Task Subscribe(PersonServiceClient client)
 {
     using (var call = client.Subscribe(new Empty()))
     {
         while (await call.ResponseStream.MoveNext())
         {
             var person = call.ResponseStream.Current;
             Console.WriteLine("Got a new person:");
             Console.WriteLine(person);
         }
     }
     //Console.WriteLine("Persons: " + reply.);
 }