summaryrefslogtreecommitdiff
path: root/dotnet/Qpid.Client/Client
diff options
context:
space:
mode:
authorSteven Shaw <steshaw@apache.org>2006-11-28 23:56:14 +0000
committerSteven Shaw <steshaw@apache.org>2006-11-28 23:56:14 +0000
commit40ae7414f695ac2bc579229df7af415a3a5a3775 (patch)
treed11d609fe5dfa2deffac9f98c1eced7c856ed05e /dotnet/Qpid.Client/Client
parentfabf031b77cbf1784a25039fc79bcb21b820d4b8 (diff)
downloadqpid-python-40ae7414f695ac2bc579229df7af415a3a5a3775.tar.gz
QPID-135 Added Rollback support
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480293 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dotnet/Qpid.Client/Client')
-rw-r--r--dotnet/Qpid.Client/Client/AmqChannel.cs23
1 files changed, 9 insertions, 14 deletions
diff --git a/dotnet/Qpid.Client/Client/AmqChannel.cs b/dotnet/Qpid.Client/Client/AmqChannel.cs
index b7c8b1857e..48d87d8f90 100644
--- a/dotnet/Qpid.Client/Client/AmqChannel.cs
+++ b/dotnet/Qpid.Client/Client/AmqChannel.cs
@@ -300,20 +300,15 @@ namespace Qpid.Client
CheckNotClosed();
CheckTransacted(); // throws IllegalOperationException if not a transacted session
- /*Channel.Rollback frame = new Channel.Rollback();
- frame.channelId = _channelId;
- frame.confirmTag = 1;*/
-
- // try
- // {
- // _connection.getProtocolHandler().writeCommandFrameAndWaitForReply(frame, new ChannelReplyListener(_channelId));
- // }
- // catch (AMQException e)
- // {
- // throw new JMSException("Error rolling back session: " + e);
- // }
- throw new NotImplementedException();
- //_logger.Info("Transaction rolled back on channel " + _channelId);
+ try
+ {
+ _connection.ConvenientProtocolWriter.SyncWrite(
+ TxRollbackBody.CreateAMQFrame(_channelId), typeof(TxRollbackOkBody));
+ }
+ catch (AMQException e)
+ {
+ throw new QpidException("Failed to rollback", e);
+ }
}
public override void Close()