DisposeResult() private method

private DisposeResult ( int resultId ) : void
resultId int
return void
Ejemplo n.º 1
0
            private IMessageEnvelope ProcessDisposeResult(IDictionary <string, object> metadata, DisposeResultRequest request)
            {
                try {
                    connector.AssertNotDisposed();
                    connector.AssertAuthenticated();

                    connector.DisposeResult(request.ResultId);
                    return(connector.CreateEnvelope(metadata, new AcknowledgeResponse(true)));
                } catch (Exception ex) {
                    // TODO: Log the error ...
                    return(CreateErrorResponse(metadata, ex));
                }
            }
            private IMessageEnvelope ProcessDisposeResult(IDictionary <string, object> metadata, DisposeResultRequest request)
            {
                try {
                    connector.AssertNotDisposed();
                    connector.AssertAuthenticated();

                    connector.DisposeResult(request.ResultId);
                    return(connector.CreateEnvelope(metadata, new AcknowledgeResponse(true)));
                } catch (Exception ex) {
                    connector.Logger.Error(connector, "Error occurred while disposing a query result.");
                    connector.Logger.Error(connector, ex);
                    return(CreateErrorResponse(metadata, ex));
                }
            }