Esempio n. 1
0
 public static async Task DivManyExample(Math.IMathClient client)
 {
     var divArgsList = new List<DivArgs>
     {
         new DivArgs.Builder { Dividend = 10, Divisor = 3 }.Build(),
         new DivArgs.Builder { Dividend = 100, Divisor = 21 }.Build(),
         new DivArgs.Builder { Dividend = 7, Divisor = 2 }.Build()
     };
     using (var call = client.DivMany())
     { 
         await call.RequestStream.WriteAll(divArgsList);
         Console.WriteLine("DivMany Result: " + string.Join("|", await call.ResponseStream.ToList()));
     }
 }