private static async Task getAllAsync(NodeServiceClient client) { using (var call = client.GetAll(new Messages.GetAllRequest())) { var responseStream = call.ResponseStream; while (await responseStream.MoveNext()) { Console.WriteLine(responseStream.Current.Node); } } }