WebPubSubConnectionContext 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 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET