Udostępnij za pośrednictwem


CommunicationTokenRefreshOptions Constructor

Definition

Initializes a new instance of CommunicationTokenRefreshOptions.

public CommunicationTokenRefreshOptions (bool refreshProactively, Func<System.Threading.CancellationToken,string> tokenRefresher);
new Azure.Communication.CommunicationTokenRefreshOptions : bool * Func<System.Threading.CancellationToken, string> -> Azure.Communication.CommunicationTokenRefreshOptions
Public Sub New (refreshProactively As Boolean, tokenRefresher As Func(Of CancellationToken, String))

Parameters

refreshProactively
Boolean

Indicates whether the token should be proactively renewed prior to expiry or renew on demand.

tokenRefresher
Func<CancellationToken,String>

The function that provides the token acquired from Communication Identity API. The returned token must be valid (its expiration date must be set in the future).

Applies to