Compartilhar via


CommunicationIdentityClient.CreateUserAndToken Método

Definição

Sobrecargas

CreateUserAndToken(IEnumerable<CommunicationTokenScope>, CancellationToken)

Cria um novo CommunicationUserIdentifier.

CreateUserAndToken(IEnumerable<CommunicationTokenScope>, TimeSpan, CancellationToken)

Cria um novo CommunicationUserIdentifier.

CreateUserAndToken(IEnumerable<CommunicationTokenScope>, CancellationToken)

Origem:
CommunicationIdentityClient.cs
public virtual Azure.Response<Azure.Communication.Identity.CommunicationUserIdentifierAndToken> CreateUserAndToken (System.Collections.Generic.IEnumerable<Azure.Communication.Identity.CommunicationTokenScope> scopes, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateUserAndToken : seq<Azure.Communication.Identity.CommunicationTokenScope> * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Identity.CommunicationUserIdentifierAndToken>
override this.CreateUserAndToken : seq<Azure.Communication.Identity.CommunicationTokenScope> * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Identity.CommunicationUserIdentifierAndToken>
Public Overridable Function CreateUserAndToken (scopes As IEnumerable(Of CommunicationTokenScope), Optional cancellationToken As CancellationToken = Nothing) As Response(Of CommunicationUserIdentifierAndToken)

Parâmetros

scopes
IEnumerable<CommunicationTokenScope>

Os escopos que o token deve ter.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a

CreateUserAndToken(IEnumerable<CommunicationTokenScope>, TimeSpan, CancellationToken)

Origem:
CommunicationIdentityClient.cs
public virtual Azure.Response<Azure.Communication.Identity.CommunicationUserIdentifierAndToken> CreateUserAndToken (System.Collections.Generic.IEnumerable<Azure.Communication.Identity.CommunicationTokenScope> scopes, TimeSpan tokenExpiresIn, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateUserAndToken : seq<Azure.Communication.Identity.CommunicationTokenScope> * TimeSpan * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Identity.CommunicationUserIdentifierAndToken>
override this.CreateUserAndToken : seq<Azure.Communication.Identity.CommunicationTokenScope> * TimeSpan * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Identity.CommunicationUserIdentifierAndToken>
Public Overridable Function CreateUserAndToken (scopes As IEnumerable(Of CommunicationTokenScope), tokenExpiresIn As TimeSpan, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CommunicationUserIdentifierAndToken)

Parâmetros

scopes
IEnumerable<CommunicationTokenScope>

Lista de CommunicationTokenScope escopos para o token.

tokenExpiresIn
TimeSpan

Período de validade personalizado do token dentro do intervalo de [1,24] horas.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a