summaryrefslogtreecommitdiff
path: root/dotnet/Qpid.Client/Client/Message
diff options
context:
space:
mode:
authorSteven Shaw <steshaw@apache.org>2006-11-28 23:37:52 +0000
committerSteven Shaw <steshaw@apache.org>2006-11-28 23:37:52 +0000
commitfabf031b77cbf1784a25039fc79bcb21b820d4b8 (patch)
treecb2aed1968622147ffef540857205e5a24d5e604 /dotnet/Qpid.Client/Client/Message
parent383a2c3ba7afb9f3c49b6980b3b64439e9e8e6ae (diff)
downloadqpid-python-fabf031b77cbf1784a25039fc79bcb21b820d4b8.tar.gz
QPID-135 Ported enough transaction support to run FailoverTxTest. Still has same problem as the Java client in that on fail-over the "transaction" continues but the earlier part of the transaction is forgotten.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@480283 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dotnet/Qpid.Client/Client/Message')
-rw-r--r--dotnet/Qpid.Client/Client/Message/AMQMessage.cs25
1 files changed, 15 insertions, 10 deletions
diff --git a/dotnet/Qpid.Client/Client/Message/AMQMessage.cs b/dotnet/Qpid.Client/Client/Message/AMQMessage.cs
index eb34fa45db..81499e31fe 100644
--- a/dotnet/Qpid.Client/Client/Message/AMQMessage.cs
+++ b/dotnet/Qpid.Client/Client/Message/AMQMessage.cs
@@ -31,22 +31,27 @@ namespace Qpid.Client.Message
/// </summary>
protected AmqChannel _channel;
- public AMQMessage(IContentHeaderProperties properties)
+ private long _deliveryTag;
+
+ public AMQMessage(IContentHeaderProperties properties, long deliveryTag)
{
_contentHeaderProperties = properties;
+ _deliveryTag = deliveryTag;
}
- public AmqChannel Channel
+ public AMQMessage(IContentHeaderProperties properties) : this(properties, -1)
+ {
+ }
+
+ public long DeliveryTag
{
- get
- {
- return _channel;
- }
+ get { return _deliveryTag; }
+ }
- set
- {
- _channel = value;
- }
+ public AmqChannel Channel
+ {
+ get { return _channel; }
+ set { _channel = value; }
}
}
}