private async void List_Click(object sender, RoutedEventArgs e)
{
// [START service]
// Create the service.
var service = new HelloworldService(new BaseClientService.Initializer()
{
ApplicationName = "Endpoints Sample",
});
// [END service]
// [START execute]
// Execute the request to list all greetings.
var response = await service.Greetings.ListGreeting().ExecuteAsync();
// [END execute]
// Update a UI control with the response.
ResponseTextBlock.Text = String.Join(Environment.NewLine,
from item in response.Items
select item.Message);
}
// [END list]