/// <summary> /// Handles the Click event of the BtnLogin control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private void BtnLogout_Click(object sender, RoutedEventArgs e) { TunnelRelayStateManager.LogoutAsync().ConfigureAwait(false).GetAwaiter().GetResult(); MessageBox.Show("Logout Complete. Application will now close to complete cleanup. Open again to login"); Application.Current.Shutdown(); }