views:

494

answers:

0

I'm having trouble implementing the Thrift API in my c# program. The lib's are built and it seems to run like it should, but one function is giving me trouble. As I understand it, getRows() is supposed to return a list of TRowResult, however it's only returning the first row in my table. My foreach loop only runs once. Anyone have experience with thrift in C#?

var rows = Client.getRows(this.TableName);


        foreach (var i in rows)
        {
            tempD.Clear();
            foreach (var j in i.Columns)
            {                    
                tempD[toString(j.Key)] = toString(j.Value.Value);
            }
            table[int.Parse(toString(i.Row))] = tempD;                  
        }       

        return table;

Thanks