Ejemplo n.º 1
0
        public void GetPeople()
        {
            var request = new GetPeopleRequest();

            Client.ExecuteAsync(request, x =>
            {
                var people = JsonConvert.DeserializeObject <List <Person> > (x.Content);
                _messageHub.PublishAsync(new PeopleMessage(this, people));
            });
        }
Ejemplo n.º 2
0
        public void GetPeople()
        {
            var request = new GetPeopleRequest ();

            Client.ExecuteAsync (request, x =>
            {
                var people = JsonConvert.DeserializeObject<List<Person>> (x.Content);
                _messageHub.PublishAsync(new PeopleMessage(this, people));
            });
        }