Class InterceptingPacketEventArgs
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
cancellationTokenCancellationTokenclientIdstringendpointstringpacketMqttPacketsessionItemsIDictionary
Properties
CancellationToken
Gets the cancellation token from the connection managing thread. Use this in further event processing.
public CancellationToken CancellationToken { get; }
Property Value
ClientId
Gets the client ID which has sent the packet or will receive the packet.
public string ClientId { get; }
Property Value
Endpoint
Gets the endpoint of the sending or receiving client.
public string Endpoint { get; }
Property Value
Packet
Gets or sets the MQTT packet which was received or will be sent.
public MqttPacket Packet { get; set; }
Property Value
ProcessPacket
Gets or sets whether the packet should be processed or not.
public bool ProcessPacket { get; set; }
Property Value
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; }