Add new server option to disable/enable persistent sessions.

This commit is contained in:
Christian
2018-05-15 22:04:05 +02:00
parent 3e6edb92c5
commit 719838de3b
4 changed files with 30 additions and 1 deletions
@@ -103,6 +103,12 @@ namespace MQTTnet.Server
return this;
}
public MqttServerOptionsBuilder WithPersistentSessions()
{
_options.EnablePersistentSessions = true;
return this;
}
public IMqttServerOptions Build()
{
return _options;