RollbackTransaction() protected method

protected RollbackTransaction ( int commitId ) : void
commitId int
return void
Ejemplo n.º 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));
                }
            }