private static async Task PrintUsers(IBikingService client) { var users = await client.GetUsers(); foreach (var user in users) { Console.WriteLine(user); } Console.ReadLine(); }
public MainViewModel(IBikingService bikingService) { LoadUsers = ReactiveCommand.CreateFromTask(() => bikingService.GetUsers()); users = LoadUsers.ToProperty(this, model => model.Users); }