Share via


WebPubSubConnectionContext Constructor

Definition

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

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)

Parameters

eventType
WebPubSubEventType

Event type.

eventName
String

Event name.

hub
String

Hub name.

connectionId
String

Connection Id.

userId
String

User Id.

signature
String

Signature of the connection.

origin
String

Origin of the event.

connectionStates
IReadOnlyDictionary<String,BinaryData>

Connection states.

headers
IReadOnlyDictionary<String,String[]>

Connection request headers.

Applies to