Example #1
0
 public async Task FindAllSuppliers()
 {
     Console.WriteLine("***** Task FindAllSuppliers *****");
     using (var call = _client.FindAllSuppliers(new Empty()))
     {
         int i = 1;
         while (await call.ResponseStream.MoveNext())
         {
             Console.WriteLine("***** Task FindAllSuppliers Iteration " + i + " *****");
             PreferredSupplier supplier = call.ResponseStream.Current;
             Console.WriteLine(i + " Received; Supplier: " + supplier.ToString());
             Console.WriteLine("***** Iteration " + i + " done *****");
             i++;
         }
     }
     Console.WriteLine("***** Task End *****");
 }