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)); }
Task <IEnumerable <Person> > IRequestHandler <GetAllPeopleRequest, IEnumerable <Person> > .Handle(GetAllPeopleRequest request, CancellationToken cancellationToken) { var cl = Service.GetAll(); return(Task.FromResult(cl)); }
public async Task <PeopleGetAllResponse> PeopleGetAllAsync(GetAllPeopleRequest request) => await CallAsync <PeopleGetAllResponse>("v1/people/getAll.json", request);