private void buttonLogout_Click(object sender, EventArgs e) { textBoxRequest.Text = "Request comes here"; textBoxResponse.Text = "Response comes here. This may take secones. Please wait..."; this.Update(); // Here is the main part that we call Glue login string logoutResponse = glueCall.Logout(m_authToken); // Show the request and response in the form. // This is for learning purpose. IRestResponse response = glueCall.m_lastResponse; textBoxRequest.Text = response.ResponseUri.AbsoluteUri; textBoxResponse.Text = response.Content; }
private void buttonLogout_Click(object sender, EventArgs e) { InitRequestResponse(); this.Update(); // Here is the main part that we call Glue login bool logoutResponse = Glue.Logout(m_authToken); m_authToken = ""; buttonLogin.Enabled = true; buttonLogout.Enabled = false; // Show the request and response in the form. // This is for learning purpose. ShowRequestResponse(); }