/// <summary> /// Async method for performing a ROQL query. /// </summary> /// <param name="queryString"></param> /// <returns></returns> public async Task <string[]> queryDataAsync(string queryString) { try { var request = new QueryCSVRequest(_rnowClientInfoHeader, queryString, 100, ",", false, false); var response = await _rnowClient.QueryCSVAsync(request); if (response.CSVTableSet.CSVTables.Length > 0) { var tableSet = response.CSVTableSet; CSVTable[] csvTables = tableSet.CSVTables; CSVTable table = csvTables[0]; string[] rowData = table.Rows; return(rowData); } } catch (Exception e) { //Write an exception to the debugger. Since this is an async method, an exception may be thrown by //a continuace exception. System.Diagnostics.Debug.WriteLine(string.Format("{0}\n{1}", e.Message, e.StackTrace)); } return(null); }