Merge branch 'master' of https://github.com/chkr1011/MQTTnet into feature/Reason_Code_In_Subscription_Interceptor

# Conflicts:
#	Build/MQTTnet.nuspec
#	Source/MQTTnet/Server/Internal/MqttClientSessionsManager.cs
This commit is contained in:
Christian
2021-10-29 21:58:57 +02:00
parent d5237bb3f5
commit 6bad9f183c
191 changed files with 601 additions and 981 deletions
+5 -5
View File
@@ -1,5 +1,4 @@
using MQTTnet.Client.Options;
using MQTTnet.Diagnostics;
using MQTTnet.Diagnostics;
using MQTTnet.Server;
using Newtonsoft.Json;
using System;
@@ -9,7 +8,7 @@ using System.Net.Security;
using System.Threading;
using System.Threading.Tasks;
using MQTTnet.Client;
using MQTTnet.Diagnostics.Runtime;
using MQTTnet.Implementations;
namespace MQTTnet.TestApp.NetCore
{
@@ -110,10 +109,11 @@ namespace MQTTnet.TestApp.NetCore
.Build();
//mqttClient.ApplicationMessageReceived += (s, e) => // version 2.8.5
mqttClient.UseApplicationMessageReceivedHandler(e => // version 3.0.0+
mqttClient.ApplicationMessageReceivedAsync += e => // version 3.0.0+
{
Interlocked.Increment(ref _count);
});
return PlatformAbstractionLayer.CompletedTask;
};
//mqttClient.Connected += async (s, e) => // version 2.8.5
mqttClient.UseConnectedHandler(async e => // version 3.0.0+