public async void Query(string database, string sql, ResultCallBack resultCallBack) { List <Serie> series = await _client.QueryAsync(database, sql); string result = Newtonsoft.Json.JsonConvert.SerializeObject(series); resultCallBack?.Invoke(result); }
public async void GetDatabases(ResultCallBack resultCallBack) { List <Database> databases = await _client.ShowDatabasesAsync(); string result = Newtonsoft.Json.JsonConvert.SerializeObject(databases); resultCallBack?.Invoke(result); }