示例#1
0
        public Task <PeopleReply> GetAll(GetAllPeopleRequest request)
        {
            var reply = new PeopleReply();

            // add the entire set to reply.People
            reply.People.AddRange(people);
            return(Task.FromResult(reply));
        }
示例#2
0
        Task <IEnumerable <Person> > IRequestHandler <GetAllPeopleRequest, IEnumerable <Person> > .Handle(GetAllPeopleRequest request, CancellationToken cancellationToken)
        {
            var cl = Service.GetAll();

            return(Task.FromResult(cl));
        }
示例#3
0
 public async Task <PeopleGetAllResponse> PeopleGetAllAsync(GetAllPeopleRequest request)
 => await CallAsync <PeopleGetAllResponse>("v1/people/getAll.json", request);