Beispiel #1
0
        internal void SetArrived()
        {
            try
            {
                this.Modified     = DateTime.Now;
                this.ArrivedTime  = DateTime.Now;
                this.MessageState = Messaging.MessageState.Arrived;
                this.ItemId       = UUID.NewUuid();

                m_stream.Replace((byte)MessageState, offset + 1);
                m_stream.Replace(ItemId.ToByteArray(), offset + 7, 16);
                m_stream.Replace(ArrivedTime.Ticks, offset + 26);
                m_stream.Replace(Modified.Ticks, offset + 44);
            }
            catch (Exception ex)
            {
                throw new MessageException(Messaging.MessageState.StreamReadWriteError, "QueueItem SetArrived error: " + ex.Message);
            }
        }