Extend configuration.

This commit is contained in:
Christian Kratky
2019-03-11 18:43:39 +01:00
parent cd76f434e3
commit e1799ea6a3
8 changed files with 228 additions and 120 deletions
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using MQTTnet.Server.Configuration;
namespace MQTTnet.Server.Mqtt
{
public class MqttServerStorage : IMqttServerStorage
{
private readonly SettingsModel _settings;
public MqttServerStorage(SettingsModel settings)
{
_settings = settings ?? throw new ArgumentNullException(nameof(settings));
}
public Task SaveRetainedMessagesAsync(IList<MqttApplicationMessage> messages)
{
return Task.CompletedTask;
}
public Task<IList<MqttApplicationMessage>> LoadRetainedMessagesAsync()
{
return Task.FromResult<IList<MqttApplicationMessage>>(null);
}
}
}