CommunicationTokenRefreshOptions Constructor
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.
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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure SDK for .NET