https://issues.apache.org/activemq/browse/AMQNET-245
Added encode of timestamp field. Removed default init of timestamp in Message class. Project: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/commit/ddd11a49 Tree: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/tree/ddd11a49 Diff: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/diff/ddd11a49 Branch: refs/heads/1.2.x Commit: ddd11a496cf71197bd1e481d2b459d426cdb8da3 Parents: 47dc8fb Author: Timothy A. Bish <tab...@apache.org> Authored: Tue Mar 30 13:38:57 2010 +0000 Committer: Timothy A. Bish <tab...@apache.org> Committed: Tue Mar 30 13:38:57 2010 +0000 ---------------------------------------------------------------------- src/main/csharp/Commands/Message.cs | 1 - src/main/csharp/Protocol/StompWireFormat.cs | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/blob/ddd11a49/src/main/csharp/Commands/Message.cs ---------------------------------------------------------------------- diff --git a/src/main/csharp/Commands/Message.cs b/src/main/csharp/Commands/Message.cs index dd2aebf..d7e8679 100644 --- a/src/main/csharp/Commands/Message.cs +++ b/src/main/csharp/Commands/Message.cs @@ -39,7 +39,6 @@ namespace Apache.NMS.Stomp.Commands public Message() : base() { - Timestamp = DateUtils.ToJavaTimeUtc(DateTime.UtcNow); } public override byte GetDataStructureType() http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/blob/ddd11a49/src/main/csharp/Protocol/StompWireFormat.cs ---------------------------------------------------------------------- diff --git a/src/main/csharp/Protocol/StompWireFormat.cs b/src/main/csharp/Protocol/StompWireFormat.cs index eaf0caa..44f3d9b 100644 --- a/src/main/csharp/Protocol/StompWireFormat.cs +++ b/src/main/csharp/Protocol/StompWireFormat.cs @@ -306,6 +306,10 @@ namespace Apache.NMS.Stomp.Protocol { frame.SetProperty("expires", command.Expiration); } + if(command.Timestamp != 0) + { + frame.SetProperty("timestamp", command.Timestamp); + } if(command.Priority != 4) { frame.SetProperty("priority", command.Priority);