GetResultPart() protected method

protected GetResultPart ( int resultId, int startRow, int countRows ) : QueryResultPart
resultId int
startRow int
countRows int
return QueryResultPart
Exemplo n.º 1
0
            private IMessageEnvelope ProcessQueryPart(IDictionary <string, object> metadata, QueryResultPartRequest request)
            {
                try {
                    connector.AssertNotDisposed();
                    connector.AssertAuthenticated();

                    var part = connector.GetResultPart(request.ResultId, request.RowIndex, request.Count);
                    return(connector.CreateEnvelope(metadata, new QueryResultPartResponse(request.ResultId, part)));
                } catch (Exception ex) {
                    // TODO: Log the error ...
                    return(CreateErrorResponse(metadata, ex));
                }
            }
            private IMessageEnvelope ProcessQueryPart(IDictionary <string, object> metadata, QueryResultPartRequest request)
            {
                try {
                    connector.AssertNotDisposed();
                    connector.AssertAuthenticated();

                    var part = connector.GetResultPart(request.ResultId, request.RowIndex, request.Count);
                    return(connector.CreateEnvelope(metadata, new QueryResultPartResponse(request.ResultId, part)));
                } catch (Exception ex) {
                    connector.Logger.Error(connector, "Error while requesting part of a query result.");
                    connector.Logger.Error(connector, ex);
                    throw;
                }
            }