CommunicationIdentityClient.CreateUserAndToken Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
CreateUserAndToken(IEnumerable<CommunicationTokenScope>, CancellationToken)
Cria um novo CommunicationUserIdentifier.
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)
Cria um novo CommunicationUserIdentifier.
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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for .NET