WebPubSubConnectionContext Konstruktor
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Der Clientverbindungskontext enthält die CloudEvents-Header unter dem Web PubSub-Protokoll.
public WebPubSubConnectionContext(Microsoft.Azure.WebPubSub.Common.WebPubSubEventType eventType, string eventName, string hub, string connectionId, 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.WebPubSubConnectionContext : Microsoft.Azure.WebPubSub.Common.WebPubSubEventType * string * string * string * string * string * string * System.Collections.Generic.IReadOnlyDictionary<string, BinaryData> * System.Collections.Generic.IReadOnlyDictionary<string, string[]> -> Microsoft.Azure.WebPubSub.Common.WebPubSubConnectionContext
Public Sub New (eventType As WebPubSubEventType, eventName As String, hub As String, connectionId 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)
Parameter
- eventType
- WebPubSubEventType
Der Ereignistyp.
- eventName
- String
Ereignisname.
- hub
- String
Hubname.
- connectionId
- String
Verbindungs-ID.
- userId
- String
Benutzer-ID.
- signature
- String
Signatur der Verbindung.
- origin
- String
Ursprung des Ereignisses.
- connectionStates
- IReadOnlyDictionary<String,BinaryData>
Verbindungszustände.
- headers
- IReadOnlyDictionary<String,String[]>
Verbindungsanforderungsheader.
Gilt für:
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Azure SDK for .NET