Пример #1
0
        private async void button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                WebhostAPICall.AuthenticationInfo info = await WebhostAPICall.AuthenticateAsync(userNameInput.Text, passwordBox.Password);

                OnResponseSuccess(info, new EventArgs());
            }
            catch (UnauthorizedAccessException ex)
            {
                OnResponseFailure(ex, new EventArgs());
            }
        }