Table of Contents

Class InterceptingPacketEventArgs

Namespace
MQTTnet.Server
Assembly
MQTTnet.dll
public sealed class InterceptingPacketEventArgs : EventArgs
Inheritance
InterceptingPacketEventArgs
Inherited Members

Constructors

InterceptingPacketEventArgs(CancellationToken, string, string, MqttPacket, IDictionary)

public InterceptingPacketEventArgs(CancellationToken cancellationToken, string clientId, string endpoint, MqttPacket packet, IDictionary sessionItems)

Parameters

cancellationToken CancellationToken
clientId string
endpoint string
packet MqttPacket
sessionItems IDictionary

Properties

CancellationToken

Gets the cancellation token from the connection managing thread. Use this in further event processing.

public CancellationToken CancellationToken { get; }

Property Value

CancellationToken

ClientId

Gets the client ID which has sent the packet or will receive the packet.

public string ClientId { get; }

Property Value

string

Endpoint

Gets the endpoint of the sending or receiving client.

public string Endpoint { get; }

Property Value

string

Packet

Gets or sets the MQTT packet which was received or will be sent.

public MqttPacket Packet { get; set; }

Property Value

MqttPacket

ProcessPacket

Gets or sets whether the packet should be processed or not.

public bool ProcessPacket { get; set; }

Property Value

bool

SessionItems

Gets or sets a key/value collection that can be used to share data within the scope of this session.

public IDictionary SessionItems { get; }

Property Value

IDictionary