MqttConnectionContext Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- connectionStates
- IReadOnlyDictionary<String,BinaryData>
- headers
- IReadOnlyDictionary<String,String[]>
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET