public QLRequest(RenQL renQL, string url, string query, object variables) { this.renQL = renQL; requestData = new QLData(url, query, variables); webRequest = new QLWebRequest(); }
void Dispose(bool isDisposing) { if (isDisposing && !isDisposed) { isDisposed = true; webRequest.Dispose(); webRequest = null; } }
/// <summary> /// Initializes a new QLResponse object based on specified web request result. /// </summary> public QLResponse(QLWebRequest webRequest) { // Parse out response data var req = webRequest.WebRequest; // Make sure it's not an error first. if (req.isError) { // Set error message ErrorMessage = req.error; } else { // Set text data. TextData = req.downloadHandler.text; } }