Exemple #1
0
        public static async void GelAllDipendentiAsync()
        {
            using var stream = service.GetAllDipendenti(e);
            List <DipendenteReply> listaDip = new List <DipendenteReply>();

            await foreach (var r in stream.ResponseStream.ReadAllAsync())
            {
                //listaDip.Add(r);
                Console.WriteLine(r.Comune + " " + r.Nominativo);
            }
        }
Exemple #2
0
        private static async void getListaDip()
        {
            Empty en = new Empty();

            using var streamF = service.GetAllDipendenti(en);
            var lstResponse = streamF.ResponseStream.ReadAllAsync();

            await foreach (var r in lstResponse)

            {
                listaDipendenti.Add(r);
            }
        }