mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-25 15:42:57 +08:00
v4.0.0 (#1357)
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
namespace MQTTnet.Diagnostics.PacketInspection
|
||||
{
|
||||
public interface IMqttPacketInspector
|
||||
{
|
||||
void ProcessMqttPacket(ProcessMqttPacketContext context);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System;
|
||||
|
||||
namespace MQTTnet.Diagnostics
|
||||
{
|
||||
public sealed class InspectMqttPacketEventArgs : EventArgs
|
||||
{
|
||||
public MqttPacketFlowDirection Direction { get; internal set; }
|
||||
|
||||
public byte[] Buffer { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,8 @@
|
||||
namespace MQTTnet.Diagnostics.PacketInspection
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
namespace MQTTnet.Diagnostics
|
||||
{
|
||||
public enum MqttPacketFlowDirection
|
||||
{
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace MQTTnet.Diagnostics.PacketInspection
|
||||
{
|
||||
public sealed class ProcessMqttPacketContext
|
||||
{
|
||||
public MqttPacketFlowDirection Direction { get; set; }
|
||||
|
||||
public byte[] Buffer { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user