Example #1
0
        private static async Task PrintUsers(IBikingService client)
        {
            var users = await client.GetUsers();

            foreach (var user in users)
            {
                Console.WriteLine(user);
            }

            Console.ReadLine();
        }
Example #2
0
 public MainViewModel(IBikingService bikingService)
 {
     LoadUsers = ReactiveCommand.CreateFromTask(() => bikingService.GetUsers());
     users     = LoadUsers.ToProperty(this, model => model.Users);
 }