MQTTnet
MQTTnet copied to clipboard
Retained message store extendable
See the issue #1660
Now the interface IMqttRetainedMessagesManager can be used to build your own retained message store. You can set the implementation in MqttServerOptions.RetainedMessagesManager. If no custom RetainedMessagedManger is set, the current one is used.
@chkr1011 What do you think? Does it fit?
Is this progressing? I just had an attempt to use events as an extension method for external storage but it is no good (#1763).
The current events work ok as long as one can accept that all retained messages are kept in memory, but now I'm looking for a solution where they can be loaded on demand, i.e. by using the proposed IMqttRetainedMessageManager interface.