Share via


EventGridModelFactory.EventGridMqttClientSessionDisconnectedEventData Method

Definition

Initializes a new instance of EventGridMqttClientSessionDisconnectedEventData.

public static Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionDisconnectedEventData EventGridMqttClientSessionDisconnectedEventData (string clientAuthenticationName = default, string clientName = default, string namespaceName = default, string clientSessionName = default, long? sequenceNumber = default, Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason? disconnectionReason = default);
static member EventGridMqttClientSessionDisconnectedEventData : string * string * string * string * Nullable<int64> * Nullable<Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientDisconnectionReason> -> Azure.Messaging.EventGrid.SystemEvents.EventGridMqttClientSessionDisconnectedEventData
Public Shared Function EventGridMqttClientSessionDisconnectedEventData (Optional clientAuthenticationName As String = Nothing, Optional clientName As String = Nothing, Optional namespaceName As String = Nothing, Optional clientSessionName As String = Nothing, Optional sequenceNumber As Nullable(Of Long) = Nothing, Optional disconnectionReason As Nullable(Of EventGridMqttClientDisconnectionReason) = Nothing) As EventGridMqttClientSessionDisconnectedEventData

Parameters

clientAuthenticationName
String

Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters.

clientName
String

Name of the client resource in the Event Grid namespace.

namespaceName
String

Name of the Event Grid namespace where the MQTT client was created or updated.

clientSessionName
String

Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters.

sequenceNumber
Nullable<Int64>

A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event.

disconnectionReason
Nullable<EventGridMqttClientDisconnectionReason>

Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table.

Returns

A new EventGridMqttClientSessionDisconnectedEventData instance for mocking.

Applies to