mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-28 17:22:37 +08:00
Expose server session items (#1638)
* Expose server session items * Add support for custom session items for injected application messages
This commit is contained in:
@@ -8,8 +8,14 @@ namespace MQTTnet.Diagnostics
|
||||
{
|
||||
public sealed class InspectMqttPacketEventArgs : EventArgs
|
||||
{
|
||||
public MqttPacketFlowDirection Direction { get; internal set; }
|
||||
public InspectMqttPacketEventArgs(MqttPacketFlowDirection direction, byte[] buffer)
|
||||
{
|
||||
Direction = direction;
|
||||
Buffer = buffer ?? throw new ArgumentNullException(nameof(buffer));
|
||||
}
|
||||
|
||||
public byte[] Buffer { get; set; }
|
||||
public byte[] Buffer { get; }
|
||||
|
||||
public MqttPacketFlowDirection Direction { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user