Example #1
0
        public void StoreOutgoiningMessage(MqttValueContract messageContract)
        {
            if (_outgoingCache.Count == _limit)
            {
                _outgoingCache.Dequeue();
            }

            _outgoingCache.Enqueue(messageContract);
        }
Example #2
0
        public void StoreIncomingMessage(MqttValueContract messageContract)
        {
            if (_incomingCache.Count == _limit)
            {
                _incomingCache.Dequeue();
            }

            _incomingCache.Enqueue(messageContract);
        }