Beispiel #1
0
 public MessageDispatch(ConsumerId consumerId, Destination destination, BytesMessage message, Int32 redeliveryCounter)
 {
     ConsumerId        = consumerId;
     Destination       = destination;
     Message           = message;
     RedeliveryCounter = redeliveryCounter;
 }
Beispiel #2
0
        protected virtual Boolean Equals(ConsumerId that)
        {
            if (_key != null && that._key != null)
            {
                return(_key.Equals(that._key));
            }

            if (!Equals(ConnectionId, that.ConnectionId))
            {
                return(false);
            }
            return(Equals(SessionId, that.SessionId) && Equals(Value, that.Value));
        }
Beispiel #3
0
 public ConnectionId(ConsumerId consumerId)
 {
     Value = consumerId.ConnectionId;
 }
Beispiel #4
0
 public SessionId(ConsumerId consumerId)
 {
     ConnectionId = consumerId.ConnectionId;
     Value        = consumerId.SessionId;
 }