Ejemplo 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;
                }
            }
Ejemplo n.º 3
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));
                }
            }
Ejemplo n.º 4
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) {
                    connector.Logger.Error(connector, "Error while requesting part of a query result.");
                    connector.Logger.Error(connector, ex);
                    throw;
                }
            }