共用方式為


CommunicationTokenCredential Class

Definition

The Azure Communication Services Token Credential.

public sealed class CommunicationTokenCredential : IDisposable
type CommunicationTokenCredential = class
    interface IDisposable
Public NotInheritable Class CommunicationTokenCredential
Implements IDisposable
Inheritance
CommunicationTokenCredential
Implements

Constructors

CommunicationTokenCredential(CommunicationTokenRefreshOptions)

Initializes a new instance of CommunicationTokenCredential that automatically renews the token upon expiry or proactively prior to expiration to speed up the requests.

CommunicationTokenCredential(String)

Initializes a new instance of CommunicationTokenCredential.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetToken(CancellationToken)

Gets an AccessToken for the user.

GetTokenAsync(CancellationToken)

Gets an AccessToken for the user.

Applies to