Example #1
0
    private static void ProcessExecQuery(Request request)
    {
      ITableServer tableServerObject = request.getTableServerObject();
      Type created = tableServerObject.GetType();

      Object resultObject = created.InvokeMember(request.getCallingMethod(),
                                                  System.Reflection.BindingFlags.Default | System.Reflection.BindingFlags.InvokeMethod,
                                                  null,
                                                  tableServerObject,
                                                  request.getMethodParameters()
                                                  );
      TableResponse tableResponse = (TableResponse)resultObject;
      IRootServerCallback iRootServerCallback = request.getRootServerCallback();
      string id = tableResponse.GetId;
      QueryResult queryResult;

      queryResult = new QueryResult(Convert.ToInt32(id), tableResponse.GetMessage);
      iRootServerCallback.PutQueryInfo(queryResult, id, 0);
    }