示例#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
            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);
                }
            }