Update docs. Add UnitTests.

This commit is contained in:
Christian Kratky
2019-10-03 15:23:35 +02:00
parent 9302e80d73
commit 073cd5243f
5 changed files with 84 additions and 17 deletions
@@ -22,7 +22,8 @@ namespace MQTTnet.Server.Mqtt
{
try
{
var sessionItems = (PythonDictionary)context.SessionItems[MqttServerConnectionValidator.WrappedSessionItemsKey];
// This might be not set when a message was published by the server instead of a client.
context.SessionItems.TryGetValue(MqttServerConnectionValidator.WrappedSessionItemsKey, out var sessionItems);
var pythonContext = new PythonDictionary
{
@@ -50,4 +51,4 @@ namespace MQTTnet.Server.Mqtt
return Task.CompletedTask;
}
}
}
}