Compartilhar via


WebPubSubConnectionContext Construtor

Definição

O contexto de conexão do cliente contém os cabeçalhos CloudEvents no protocolo Web PubSub.

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)

Parâmetros

eventType
WebPubSubEventType

Tipo de evento.

eventName
String

Nome do evento.

hub
String

Nome do hub.

connectionId
String

ID da conexão.

userId
String

ID de usuário.

signature
String

Assinatura da conexão.

origin
String

Origem do evento.

connectionStates
IReadOnlyDictionary<String,BinaryData>

Estados de conexão.

headers
IReadOnlyDictionary<String,String[]>

Cabeçalhos de solicitação de conexão.

Aplica-se a