コード例 #1
0
            private IMessageEnvelope ProcessRollback(IDictionary <string, object> metadata, RollbackRequest request)
            {
                try {
                    connector.AssertNotDisposed();
                    connector.AssertAuthenticated();

                    connector.RollbackTransaction(request.TransactionId);
                    return(connector.CreateEnvelope(metadata, new AcknowledgeResponse(true)));
                } catch (Exception ex) {
                    // TODO: Log the error ...
                    return(CreateErrorResponse(metadata, ex));
                }
            }
コード例 #2
0
ファイル: ServerConnector.cs プロジェクト: prepare/deveeldb
            private IMessageEnvelope ProcessRollback(IDictionary<string, object> metadata, RollbackRequest request)
            {
                try {
                    connector.AssertNotDisposed();
                    connector.AssertAuthenticated();

                    connector.RollbackTransaction(request.TransactionId);
                    return connector.CreateEnvelope(metadata, new AcknowledgeResponse(true));
                } catch (Exception ex) {
                    // TODO: Log the error ...
                    return CreateErrorResponse(metadata, ex);
                }
            }
コード例 #3
0
            private IMessageEnvelope ProcessRollback(IDictionary<string, object> metadata, RollbackRequest request)
            {
                try {
                    connector.AssertNotDisposed();
                    connector.AssertAuthenticated();

                    connector.RollbackTransaction(request.TransactionId);
                    return connector.CreateEnvelope(metadata, new AcknowledgeResponse(true));
                } catch (Exception ex) {
                    connector.Logger.Error(connector, "Error while rolling-back the transaction.");
                    connector.Logger.Error(connector, ex);
                    return CreateErrorResponse(metadata, ex);
                }
            }