var clientServerStream = client.ClientServerStreamMethodAsync(); var clientServerRequestStream = clientServerStream.RequestStream; for (int k = 0; k < 10; k++) { await clientServerRequestStream.WriteAsync(new ClientStreamMethodParam { Par = k }); Console.WriteLine($"send par {k}"); await Task.Delay(500); } await clientServerRequestStream.CompleteAsync(); var clientServerResponse = clientServerStream.ResponseStream; while (await clientServerResponse.MoveNext(token)) { Console.WriteLine($"{ clientServerResponse.Current.Result }"); }