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)); } }
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); } }
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); } }