WebPubSubChatServiceClient.GetClientAccessUri Method
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.
Generates a client access URI that a client can use to connect to the Web PubSub Chat service. The URI includes a JWT access token as a query parameter.
public virtual Uri GetClientAccessUri(Azure.Messaging.WebPubSub.Chat.ClientAccessUriOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetClientAccessUri : Azure.Messaging.WebPubSub.Chat.ClientAccessUriOptions * System.Threading.CancellationToken -> Uri
override this.GetClientAccessUri : Azure.Messaging.WebPubSub.Chat.ClientAccessUriOptions * System.Threading.CancellationToken -> Uri
Public Overridable Function GetClientAccessUri (Optional options As ClientAccessUriOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Uri
Parameters
- options
- ClientAccessUriOptions
Options controlling the generated token. Pass null to use defaults.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
A Uri that a client can use to connect, with the access token included.