WebPubSubServiceClient.GetClientAccessUriAsync 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.
Overloads
GetClientAccessUriAsync(DateTimeOffset, String, IEnumerable<String>, CancellationToken) |
Creates a URI with authentication token. |
GetClientAccessUriAsync(TimeSpan, String, IEnumerable<String>, CancellationToken) |
Creates a URI with authentication token. |
GetClientAccessUriAsync(DateTimeOffset, String, IEnumerable<String>, IEnumerable<String>, CancellationToken) |
Creates a URI with authentication token. |
GetClientAccessUriAsync(TimeSpan, String, IEnumerable<String>, IEnumerable<String>, CancellationToken) |
Creates a URI with authentication token. |
GetClientAccessUriAsync(DateTimeOffset, String, IEnumerable<String>, CancellationToken)
- Source:
- WebPubSubServiceClient.cs
Creates a URI with authentication token.
public virtual System.Threading.Tasks.Task<Uri> GetClientAccessUriAsync (DateTimeOffset expiresAt, string userId, System.Collections.Generic.IEnumerable<string> roles, System.Threading.CancellationToken cancellationToken);
abstract member GetClientAccessUriAsync : DateTimeOffset * string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
override this.GetClientAccessUriAsync : DateTimeOffset * string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
Public Overridable Function GetClientAccessUriAsync (expiresAt As DateTimeOffset, userId As String, roles As IEnumerable(Of String), cancellationToken As CancellationToken) As Task(Of Uri)
Parameters
- expiresAt
- DateTimeOffset
UTC time when the token expires.
- userId
- String
User Id.
- roles
- IEnumerable<String>
Roles that the connection with the generated token will have.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Applies to
GetClientAccessUriAsync(TimeSpan, String, IEnumerable<String>, CancellationToken)
- Source:
- WebPubSubServiceClient.cs
Creates a URI with authentication token.
public virtual System.Threading.Tasks.Task<Uri> GetClientAccessUriAsync (TimeSpan expiresAfter, string userId, System.Collections.Generic.IEnumerable<string> roles, System.Threading.CancellationToken cancellationToken);
abstract member GetClientAccessUriAsync : TimeSpan * string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
override this.GetClientAccessUriAsync : TimeSpan * string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
Public Overridable Function GetClientAccessUriAsync (expiresAfter As TimeSpan, userId As String, roles As IEnumerable(Of String), cancellationToken As CancellationToken) As Task(Of Uri)
Parameters
- expiresAfter
- TimeSpan
Defaults to one hour, if not specified. Must be greater or equal zero.
- userId
- String
User Id.
- roles
- IEnumerable<String>
Roles that the connection with the generated token will have.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Applies to
GetClientAccessUriAsync(DateTimeOffset, String, IEnumerable<String>, IEnumerable<String>, CancellationToken)
- Source:
- WebPubSubServiceClient.cs
Creates a URI with authentication token.
public virtual System.Threading.Tasks.Task<Uri> GetClientAccessUriAsync (DateTimeOffset expiresAt, string userId = default, System.Collections.Generic.IEnumerable<string> roles = default, System.Collections.Generic.IEnumerable<string> groups = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetClientAccessUriAsync : DateTimeOffset * string * seq<string> * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
override this.GetClientAccessUriAsync : DateTimeOffset * string * seq<string> * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
Public Overridable Function GetClientAccessUriAsync (expiresAt As DateTimeOffset, Optional userId As String = Nothing, Optional roles As IEnumerable(Of String) = Nothing, Optional groups As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Uri)
Parameters
- expiresAt
- DateTimeOffset
UTC time when the token expires.
- userId
- String
User Id.
- roles
- IEnumerable<String>
Roles that the connection with the generated token will have.
- groups
- IEnumerable<String>
Groups that the connection with the generated token will join when it connects.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Applies to
GetClientAccessUriAsync(TimeSpan, String, IEnumerable<String>, IEnumerable<String>, CancellationToken)
- Source:
- WebPubSubServiceClient.cs
Creates a URI with authentication token.
public virtual System.Threading.Tasks.Task<Uri> GetClientAccessUriAsync (TimeSpan expiresAfter = default, string userId = default, System.Collections.Generic.IEnumerable<string> roles = default, System.Collections.Generic.IEnumerable<string> groups = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetClientAccessUriAsync : TimeSpan * string * seq<string> * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
override this.GetClientAccessUriAsync : TimeSpan * string * seq<string> * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
Public Overridable Function GetClientAccessUriAsync (Optional expiresAfter As TimeSpan = Nothing, Optional userId As String = Nothing, Optional roles As IEnumerable(Of String) = Nothing, Optional groups As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Uri)
Parameters
- expiresAfter
- TimeSpan
Defaults to one hour, if not specified. Must be greater or equal zero.
- userId
- String
User Id.
- roles
- IEnumerable<String>
Roles that the connection with the generated token will have.
- groups
- IEnumerable<String>
Groups that the connection with the generated token will join when it connects.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Applies to
Azure SDK for .NET
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: