public void StoreOutgoiningMessage(MqttValueContract messageContract) { if (_outgoingCache.Count == _limit) { _outgoingCache.Dequeue(); } _outgoingCache.Enqueue(messageContract); }
public void StoreIncomingMessage(MqttValueContract messageContract) { if (_incomingCache.Count == _limit) { _incomingCache.Dequeue(); } _incomingCache.Enqueue(messageContract); }