Skip to content
Permalink
Browse files
https://issues.apache.org/activemq/browse/AMQNET-245
Added encode of timestamp field.  Removed default init of timestamp in Message class.
  • Loading branch information
Timothy A. Bish committed Mar 30, 2010
1 parent bbcf9a1 commit b0cf6c6088944cc75d4be4bc1ebf5aafdcc53ffe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
@@ -39,7 +39,6 @@ public static Message Transform(IMessage message)

public Message() : base()
{
Timestamp = DateUtils.ToJavaTimeUtc(DateTime.UtcNow);
}

public override byte GetDataStructureType()
@@ -306,6 +306,10 @@ protected virtual void WriteMessage(Message command, BinaryWriter dataOut)
{
frame.SetProperty("expires", command.Expiration);
}
if(command.Timestamp != 0)
{
frame.SetProperty("timestamp", command.Timestamp);
}
if(command.Priority != 4)
{
frame.SetProperty("priority", command.Priority);

0 comments on commit b0cf6c6

Please sign in to comment.