public GetUserAsync ( string username ) : Task |
||
username | string | |
return | Task |
private async void BtGetUserClick(object sender, RoutedEventArgs e) { App app = Application.Current as App; if (app == null) return; var client = new VideosServiceClient(app.EsbUsername, app.EsbPassword, app.EsbAccessKey); User u = await client.GetUserAsync(this.tb_UserNameForGetUser.Text); this.tblock_Result.Text = String.Format("Username: {0}\nCreationDate: {1}\nLastLogin: {2}", u.Username, u.CreationDate, u.LastLogin); }