共用方式為


ConnectEventRequest.CreateResponse Method

Definition

public Microsoft.Azure.WebPubSub.Common.ConnectEventResponse CreateResponse (string userId, System.Collections.Generic.IEnumerable<string> groups, string subprotocol, System.Collections.Generic.IEnumerable<string> roles);
member this.CreateResponse : string * seq<string> * string * seq<string> -> Microsoft.Azure.WebPubSub.Common.ConnectEventResponse
Public Function CreateResponse (userId As String, groups As IEnumerable(Of String), subprotocol As String, roles As IEnumerable(Of String)) As ConnectEventResponse

Parameters

userId
String

Caller userId for current connection.

groups
IEnumerable<String>

Groups applied to current connection.

subprotocol
String

Subprotocol applied to current connection.

roles
IEnumerable<String>

User roles applied to current connection.

Returns

A connect response to return service.

Applies to