Add event which is fired before a publish packet is released

This commit is contained in:
Christian
2022-11-21 21:35:36 +01:00
parent 301c4411e5
commit d003ae1f34
11 changed files with 98 additions and 56 deletions
@@ -30,7 +30,7 @@ namespace MQTTnet.Tests.Diagnostics
var packets = new List<string>();
mqttClient.InspectPackage += eventArgs =>
mqttClient.InspectPackageAsync += eventArgs =>
{
packets.Add(eventArgs.Direction + ":" + Convert.ToBase64String(eventArgs.Buffer));
return CompletedTask.Instance;
+1 -1
View File
@@ -954,7 +954,7 @@ namespace MQTTnet.Tests.Server
var client = testEnvironment.CreateClient();
client.InspectPackage += e =>
client.InspectPackageAsync += e =>
{
if (e.Buffer.Length > 0)
{