HelloWorld.MainPage.List_Click C# (CSharp) Method

List_Click() private method

Lists all the Hello World's greetings.
private List_Click ( object sender, RoutedEventArgs e ) : void
sender object
e Windows.UI.Xaml.RoutedEventArgs
return void
        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]