Share via


MqttConnectionContext Constructor

Definition

The MQTT connection context contains the CloudEvents headers under Web PubSub protocol.

public MqttConnectionContext (Microsoft.Azure.WebPubSub.Common.WebPubSubEventType eventType, string eventName, string hub, string connectionId, string physicalConnectionId, string? sessionId, string? userId = default, string? signature = default, string? origin = default, System.Collections.Generic.IReadOnlyDictionary<string,BinaryData>? connectionStates = default, System.Collections.Generic.IReadOnlyDictionary<string,string[]>? headers = default);
new Microsoft.Azure.WebPubSub.Common.MqttConnectionContext : Microsoft.Azure.WebPubSub.Common.WebPubSubEventType * string * string * string * string * string * string * string * string * System.Collections.Generic.IReadOnlyDictionary<string, BinaryData> * System.Collections.Generic.IReadOnlyDictionary<string, string[]> -> Microsoft.Azure.WebPubSub.Common.MqttConnectionContext
Public Sub New (eventType As WebPubSubEventType, eventName As String, hub As String, connectionId As String, physicalConnectionId As String, sessionId As String, Optional userId As String = Nothing, Optional signature As String = Nothing, Optional origin As String = Nothing, Optional connectionStates As IReadOnlyDictionary(Of String, BinaryData) = Nothing, Optional headers As IReadOnlyDictionary(Of String, String()) = Nothing)

Parameters

eventType
WebPubSubEventType
eventName
String
hub
String
connectionId
String
physicalConnectionId
String
sessionId
String
userId
String
signature
String
origin
String

Applies to