Esempio n. 1
0
        async static Task Main(string[] args)
        {
            using var channel = GrpcChannel.ForAddress("https://localhost:32768/");
            var clientSimple = new Simple.SimpleClient(channel);
            var sampleResult = await clientSimple.GetSimpleDataAsync(new InRequest { Filter = "Prova" });



            var client = new Person.PersonClient(channel);
            PeopleFilterRequest filterRequest = new PeopleFilterRequest();
            var reply = await client.GetAllPeopleAsync(filterRequest);

            //var client = new Greeter.GreeterClient(channel);
            //var reply = await client.SayHelloAsync(
            //				  new HelloRequest { Name = "GreeterClient" });
            Console.ReadKey();
        }
Esempio n. 2
0
 public override Task <PeopleReply> GetAllPeople(PeopleFilterRequest request, ServerCallContext context)
 {
     return(base.GetAllPeople(request, context));
 }