Class ClientDisconnectedEventArgs
public sealed class ClientDisconnectedEventArgs : EventArgs
- Inheritance
-
ClientDisconnectedEventArgs
- Inherited Members
Constructors
ClientDisconnectedEventArgs(string, MqttDisconnectPacket, MqttClientDisconnectType, string, IDictionary)
public ClientDisconnectedEventArgs(string clientId, MqttDisconnectPacket disconnectPacket, MqttClientDisconnectType disconnectType, string endpoint, IDictionary sessionItems)
Parameters
clientIdstringdisconnectPacketMqttDisconnectPacketdisconnectTypeMqttClientDisconnectTypeendpointstringsessionItemsIDictionary
Properties
ClientId
Gets the client identifier. Hint: This identifier needs to be unique over all used clients / devices on the broker to avoid connection issues.
public string ClientId { get; }
Property Value
DisconnectType
public MqttClientDisconnectType DisconnectType { get; }
Property Value
Endpoint
public string Endpoint { get; }
Property Value
ReasonCode
Gets the reason code sent by the client.
Only available for clean disconnects.
public MqttDisconnectReasonCode? ReasonCode { get; }
Property Value
ReasonString
Gets the reason string sent by the client.
Only available for clean disconnects.
public string ReasonString { get; }
Property Value
SessionExpiryInterval
Gets the session expiry interval sent by the client.
Only available for clean disconnects.
public uint SessionExpiryInterval { get; }
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; }
Property Value
UserProperties
Gets the user properties sent by the client.
Only available for clean disconnects.
public List<MqttUserProperty> UserProperties { get; }